From d5dc5a75523b7f5bf9c6104e35affdc060d2a8aa Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 23 Oct 2003 09:38:51 +0000 Subject: [PATCH] DONE does no longer set an error code git-svn-id: svn://svn.cc65.org/cc65/trunk@2570 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/tgi/tgi_done.s | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libsrc/tgi/tgi_done.s b/libsrc/tgi/tgi_done.s index e3d37b373..a5d1dce7a 100644 --- a/libsrc/tgi/tgi_done.s +++ b/libsrc/tgi/tgi_done.s @@ -12,11 +12,8 @@ lda _tgi_gmode ; Is a graphics mode active? beq @L1 ; Jump if not jsr tgi_done ; Call the driver routine - jsr tgi_geterror ; Get the error code - sta _tgi_error ; Save it for reference - cmp #TGI_ERR_OK - bne @L1 ; Jump if we had an error - sta _tgi_gmode ; Reset the graph mode flag (A = 0) + lda #$00 + sta _tgi_gmode ; Reset the graph mode flag @L1: rts .endproc