OpenCores
URL https://opencores.org/ocsvn/a-z80/a-z80/trunk

Subversion Repositories a-z80

[/] [a-z80/] [trunk/] [tools/] [zmac/] [hello_world.asm] - Diff between revs 3 and 8

Show entire file | Details | Blame | View Log

Rev 3 Rev 8
Line 130... Line 130...
    ld  a,(counter)
    ld  a,(counter)
    call tohex
    call tohex
 
 
    ld  (stack),sp
    ld  (stack),sp
 
 
 
; Several options on which values we want to dump, uncomment only one:
    ld  hl, text+5
    ld  hl, text+5
    ld  a,(stack+1)
;   ld  a,(stack+1)     ; Dump stack pointer (useful to check SP)
 
    ld  a, i            ; Show IR register
    call tohex
    call tohex
    ld  hl, text+7
    ld  hl, text+7
    ld  a,(stack)
;   ld  a,(stack)       ; Dump stack pointer (useful to check SP)
 
    ld  a, r            ; Show IR register
    call tohex
    call tohex
 
 
; Two versions of the code: either keep printing the text indefinitely (which
; Two versions of the code: either keep printing the text indefinitely (which
; can be used for interrupt testing), or print it only once and die
; can be used for interrupt testing), or print it only once and die
die:
die:
Line 179... Line 182...
stack: dw 0
stack: dw 0
 
 
hello:
hello:
    db  13,10
    db  13,10
text:
text:
    db '0000 0000 Hello, World!',13,10,'$'
    db '---- ---- Hello, World!$'
 
 
end
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.