A86: test program
[Prev][Next][Index][Thread]
A86: test program
Here's a tiny useless program. I though it'd be a good example of asm
code and the hex equivalent for those folks (like me) who are too poor to
buy or make a graph link and are forced to type things in by hand. Also
converting asm to hex by hand is fun. :)
org _asm_exec_ram ; ASMPRGM
call _clrscrn ; CD824A
ld hl,3 ; 210300
ld (_curRow),hl ; 220FC0
ld hl,press ; 2164D7
call _puts ; CD374A
call _newline ; CD5F4A
call _getky ; CDAA55
ld hl,hello ; 2171D7
call _puts ; CD374A
ret ; C9
press:
db 'Press a key!',0
hello:
db 'Hello',0
Follow-Ups: