]> git.sur5r.net Git - cc65/commitdiff
DONE does no longer set an error code
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 23 Oct 2003 09:38:51 +0000 (09:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 23 Oct 2003 09:38:51 +0000 (09:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2570 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/tgi/tgi_done.s

index e3d37b373f5f4c701fa293c91324b895e20a79bd..a5d1dce7a7315220e633fbaa830c792596fe6837 100644 (file)
         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