]> git.gag.com Git - fw/sdcc/blobdiff - device/lib/z80/crt0.s
* Got dhrystone working - 83/s on a 4MHz Z80!
[fw/sdcc] / device / lib / z80 / crt0.s
index dee48ca505aec436cca575c9da26a817da35df96..9d51c51aaee1a57d95faae08b054b217548f66e4 100644 (file)
@@ -6,6 +6,18 @@
        .org    0
        jp      init
 
+       .org    0x08
+       reti
+       .org    0x10
+       reti
+       .org    0x18
+       reti
+       .org    0x20
+       reti
+       .org    0x28
+       reti
+       .org    0x30
+       reti
        .org    0x38
        reti
        
@@ -23,6 +35,11 @@ init:
        .area   _DATA
 
        .area   _CODE
+_getsp::
+       ld      hl,#0
+       add     hl,sp
+       ret
+       
 _exit::
        ;; Exit - special code to the emulator
        ld      a,#0