From: cuz Date: Tue, 2 Mar 2004 17:10:43 +0000 (+0000) Subject: Fix: No ST constant available X-Git-Tag: V2.12.0~935 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af461406cbf4cef261a4eb1b087e340c435f2022;p=cc65 Fix: No ST constant available git-svn-id: svn://svn.cc65.org/cc65/trunk@2885 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/cbm510/crt0.s b/libsrc/cbm510/crt0.s index 936d67c61..829aed4c7 100644 --- a/libsrc/cbm510/crt0.s +++ b/libsrc/cbm510/crt0.s @@ -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. diff --git a/libsrc/cbm610/crt0.s b/libsrc/cbm610/crt0.s index 12e083d87..c6b073bb0 100644 --- a/libsrc/cbm610/crt0.s +++ b/libsrc/cbm610/crt0.s @@ -392,7 +392,7 @@ _exit: pha ; Save the return code ; 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.