|
|
ROM subroutines
Print char; input char; print boolean
|
|
Print char
addr |
code |
mnemonic |
action |
comments |
EE0...280 | 0005 0172 | TRAP 5/02, $71 | call system function: print symbol | print char from $71 |
284 | 9F6F 6F00 | GOI $6F, $6F, 00 | return using $6F | (finish subroutine) |
Input char
addr |
code |
mnemonic |
action |
comments |
EE0...288 | 0005 0171 | TRAP 5/01, $71 | call system function: input symbol | input char to $71 |
28C | 9F6F 6F00 | GOI $6F, $6F, 00 | return using $6F | (finish subroutine) |
Print boolean
addr |
code |
mnemonic |
action |
comments |
EE0...290 | 2173 6F00 | ADDI $73, $6F, 00 | $73 <== $6F | store return address to $73 |
294 | 4271 0005 | BZ $71, 0005 | branch to 2A8 if $71 = 0 | if FALSE |
298 | 9F6F 7030 | GOI $6F, $70, 30 | call subroutine $70 + 30, return - $6F |
print the following text |
29C | 0454 5255 4500 0000 | TRUE | 4 symbols: "TRU" "E" | text to print (length=4 - first byte) |
2A4 | 9F73 7300 | GOI $73, $73, 00 | return using old $6F value | (finish subroutine) |
2A8 | 9F6F 7030 | GOI $6F, $70, 30 | call subroutine $70 + 30, return - $6F | print the following text |
2AC | 0546 414C 5345 0000 | FALSE | 5 symbols: "FAL" "SE" | text to print (length=5 - first byte) |
2B4 | 9F73 7300 | GOI $73, $73, 00 | return using old $6F value | (finish subroutine) |
Related topics:
E-MMI software
|
(C) 2003, Evgeny Eremin. rEd-MMI project documentation
|
|