Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
ASIC programming language
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Control Structures === A boolean condition may be only a comparison of numbers or strings, but not a comparison of combined expressions. A literal cannot be the left operand of comparison (e.g. can be <code>X = 2</code>, not <code>2 = X</code>). ==== Decisions ==== After <code>THEN</code>, there may be a sequence of statements delimited by <code>ELSE</code> or <code>ENDIF</code>. An example: <syntaxhighlight lang="basic"> IF X < 0 THEN PRINT "Negative" ELSE PRINT "Non-negative" ENDIF </syntaxhighlight> Contrary to other BASICs, statements cannot be put between <code>THEN</code> and the end of the line. An if-statement can realize the conditional jump. In this case, after <code>THEN</code> there may be a label. ==== Looping ==== In <code>FOR</code>, after <code>TO</code> there may be only a number - literal or variable - but not a combined expression. The <code>STEP</code> clause does not exist in ASIC. ==== Branching ==== In a <code>GOTO</code> statement, the label must be followed by a colon. ==== Subroutines ==== In a <code>GOSUB</code> statement, the label must be followed by a colon.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)