]> git.gag.com Git - fw/sdcc/blobdiff - support/regression/ports/z80/support.asm
Added tests for switch statement and the z80 loop induction problem
[fw/sdcc] / support / regression / ports / z80 / support.asm
index 6ba7686aea72305972be1486695eabb51ed6c156..01e0ef8b73cdd4953f84dff75780a9f2e6455f73 100644 (file)
@@ -1,40 +1,9 @@
-       ;; ****************************************
-       ;; Beginning of module
-       .title  "Test runtime"
-       .module Runtime
-
-        .globl _main
-        .STACK = 0xE000
-
-               .area   _INIT (ABS)
-        .org    0x0
-        jp      0x100
-                                
-               .org    0x100
-__init::
-       ;; Beginning of the code
-       DI                      ; Disable interrupts
-       LD      SP,#.STACK
-       ;; Call the main function
-       CALL    _main
-        ld      a, #0
-        out    (1), a
+        .area   _CODE
+        .globl  _putchar
+        .globl  _exit
 
 __putchar::
-        ld      a,l
-        out     (0xff),a
-        ret
-        
-        .org    0x200
-       .area _HOME
-        .area _CODE
-       .area _OVERLAY
-       .area _ISEG
-       .area _BSEG
-       .area _XSEG
-       .area _GSINIT
-       .area _GSFINAL
-       .area _GSINIT
-       .area _CODE
+        jp      _putchar
 
-       .area _DATA
+__exitEmu::
+        jp      _exit