From b22030dbc73f234e869576c1c599a1e145123c94 Mon Sep 17 00:00:00 2001 From: izydorst Date: Fri, 3 Jan 2003 12:56:38 +0000 Subject: [PATCH] DONE must set an error code git-svn-id: svn://svn.cc65.org/cc65/trunk@1876 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c128/c128-640-200-2.s | 3 ++- libsrc/c128/c128-640-480-2.s | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libsrc/c128/c128-640-200-2.s b/libsrc/c128/c128-640-200-2.s index 703dfd418..d48a4eeb1 100644 --- a/libsrc/c128/c128-640-200-2.s +++ b/libsrc/c128/c128-640-200-2.s @@ -346,7 +346,8 @@ DONE: jsr VDCWriteReg ; restore color (background) lda #$47 ldx #VDC_HSCROLL - jmp VDCWriteReg ; switch to text screen + jsr VDCWriteReg ; switch to text screen +; fall through to GETERROR in order to clear ERROR status ; ------------------------------------------------------------------------ ; GETERROR: Return the error code in A and clear it. diff --git a/libsrc/c128/c128-640-480-2.s b/libsrc/c128/c128-640-480-2.s index 409c7d5d5..d3c27f0de 100644 --- a/libsrc/c128/c128-640-480-2.s +++ b/libsrc/c128/c128-640-480-2.s @@ -355,7 +355,8 @@ DONE: jsr VDCWriteReg ; restore color (background) lda #$47 ldx #VDC_HSCROLL - jmp VDCWriteReg ; switch to text screen + jsr VDCWriteReg ; switch to text screen +; fall through to GETERROR in order to clear ERROR status ; ------------------------------------------------------------------------ ; GETERROR: Return the error code in A and clear it. -- 2.39.5