works and returns to DOS on dosbox
[com32] / src / startup.asm
index 8c7dfbb..bc033e2 100644 (file)
@@ -21,6 +21,7 @@ startup:
        rep stosd
 .nobss:
 
+       mov ebp, 12345678h
        call main
        cli     ; XXX
 
@@ -29,7 +30,7 @@ startup:
        test al, 1
        jz .waitkey
        in al, 60h
-       ret
+       retf
 
 ;      global putchar
 ;putchar: