Changed default documentation dir to share/doc/sdcc
[fw/sdcc] / support / regression / ports / z80 / support.asm
index 2686711ae96e2f69eca88c5745b323b2cb0ef0d3..4c4c35ada29dde3abe2b9348a7fbf1da637ac06e 100644 (file)
@@ -1,42 +1,5 @@
-       ;; ****************************************
-        ;; Minimal crt0 and support functions for the sdcc test suite.
-       ;; 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
-        rst     8
+        .area   _CODE
+        .globl  _putchar
 
 __putchar::
-        ld      a,#1
-        rst     #8
-        ret
-
-        ;; Segment order
-        .org    0x200
-       .area _HOME
-        .area _CODE
-       .area _OVERLAY
-       .area _ISEG
-       .area _BSEG
-       .area _XSEG
-       .area _GSINIT
-       .area _GSFINAL
-       .area _GSINIT
-       .area _CODE
-
-       .area _DATA
+        jp      _putchar