diff options
Diffstat (limited to 'src/example/cpc.asm')
-rw-r--r-- | src/example/cpc.asm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/example/cpc.asm b/src/example/cpc.asm index 0c9ff5e..5a37702 100644 --- a/src/example/cpc.asm +++ b/src/example/cpc.asm @@ -11,12 +11,19 @@ start: org $8000 ld hl,msg -loop: + call print + jp $ + + org $8400 +print: ld a,(hl) + cp 0 ret z + push hl call $bb5a + pop hl inc hl - jr loop + jr print org $8800 msg: defb "Hello World",0 |