]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm510/crt0.s
Fix: No ST constant available
[cc65] / libsrc / cbm510 / crt0.s
index 936d67c614f5076c8b0e5a5c6511f5f4ae9a6996..829aed4c7a7d4433dac9ad9a46b66c93679eea7b 100644 (file)
@@ -485,7 +485,7 @@ _exit:  pha                 ; Save the return code on stack
 ; Place the program return code into ST
 
        pla
-       ldy     #ST
+       ldy     #$9C            ; ST
        sta     (sysp0),y
 
 ; Setup the welcome code at the stack bottom in the system bank.