Danke, ja das hab ich auch schon gedacht:
Code
.module crt0
.globl _main
.area _HEADER (ABS)
;; Reset vector
.org 0x0000
jp init
init:
;; Stack at the top of memory.
ld sp,#0x4fff
;; Initialise global variables
call gsinit
call _main
ret
;; Ordering of segments for the linker.
.area _HOME
.area _CODE
.area _GSINIT
.area _GSFINAL
.area _GSINIT
gsinit::
.area _GSFINAL
ret
.area _DATA
.area _BSEG
.area _BSS
.area _HEAP
Alles anzeigen
Hatte das auch probiert, er bleibt im Simulator immer in der Schleife, auch hier kommt der nicht raus. Es kann doch nicht so kompliziert mit dem sdcc sein.