From 755c9234e1e4b14cec5eca27912a8380ee22055a Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Sat, 13 Apr 2024 19:49:40 +0200 Subject: [PATCH] Update C128 exit code --- include/crt.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/crt.c b/include/crt.c index 29deb16..00c3e44 100644 --- a/include/crt.c +++ b/include/crt.c @@ -332,13 +332,12 @@ spexit: sta $13 #if defined(__C128__) || defined(__C128B__) || defined(__C128E__) sta $1a + lda #$1b + sta $18 #endif lda #$19 sta $16 -#if defined(__C128__) - lda #0 - sta 0xff00 -#elif defined(__PLUS4__) +#if defined(__PLUS4__) sta $ff3e #endif #endif