Basic Input/Output Commands
Jump to navigation
Jump to search
Basic Input/Output Commands is an esoteric assembly code-like programming language that simply uses device input/output.
Instruction | Details | Examples |
---|---|---|
@s num |
Changes the set of switches in the RAM represented by s to the binary representation of n. The maximum number of n depends on the bitsize. For example, if the bitsize is 8, the maximum number of n is 255, and if the bitsize is 16, the maximum number of n is 65536. |
|
|
Reads a value from a section by number in the device with the specified ID and stores it at memory position s. @s uses a value from memory (see "@s ...") |
|
|
Writes a value or set of values to a section by number in the device with the specified ID. |
|
|
Replaces all subsections in the specified section of the specified device identifier with 0. If the top-level section is cleared, a reset signal is sent to the device |
|
|
Sends n1, n2, n3, etc. to the quick input/output device with the specified identifier, waits for the device to process the input, then sets the set of switches represented by s to the output (mainly for quick conditional processing or mathematics) |
|
if @s instruction | Executes instruction if the set of switches represented by s is not 0 | |
qrl | Short for "Quick Reload" - jumps to the beginning of the program | |
frl | Short for "Full Reload" - clears the memory cells that the program used and jumps to the beginning of the program |