From: Stephan Mühlstrasser Date: Sun, 30 Nov 2014 15:00:55 +0000 (+0100) Subject: Undo accidental rename of wrong scrsize.s file. X-Git-Tag: V2.15~22^2~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=945ad167dfa5d4714e235cdff1458a12e43384af;p=cc65 Undo accidental rename of wrong scrsize.s file. --- diff --git a/libsrc/conio/_scrsize.s b/libsrc/conio/_scrsize.s deleted file mode 100644 index 6582568d7..000000000 --- a/libsrc/conio/_scrsize.s +++ /dev/null @@ -1,35 +0,0 @@ -; -; Ullrich von Bassewitz, 08.08.1998 -; -; void screensize (unsigned char* x, unsigned char* y); -; - - .export _screensize - - .import popsreg - .import screensize - .importzp ptr1, sreg - -.proc _screensize - - sta ptr1 ; Store the y pointer - stx ptr1+1 - jsr popsreg ; Get the x pointer into sreg - jsr screensize ; Get screensize into X/Y - tya ; Get Y size into A - -.IFP02 - ldy #0 - sta (ptr1),y - txa - sta (sreg),y -.ELSE - sta (ptr1) - txa - sta (sreg) -.ENDIF - - rts - -.endproc - diff --git a/libsrc/conio/scrsize.s b/libsrc/conio/scrsize.s new file mode 100644 index 000000000..6582568d7 --- /dev/null +++ b/libsrc/conio/scrsize.s @@ -0,0 +1,35 @@ +; +; Ullrich von Bassewitz, 08.08.1998 +; +; void screensize (unsigned char* x, unsigned char* y); +; + + .export _screensize + + .import popsreg + .import screensize + .importzp ptr1, sreg + +.proc _screensize + + sta ptr1 ; Store the y pointer + stx ptr1+1 + jsr popsreg ; Get the x pointer into sreg + jsr screensize ; Get screensize into X/Y + tya ; Get Y size into A + +.IFP02 + ldy #0 + sta (ptr1),y + txa + sta (sreg),y +.ELSE + sta (ptr1) + txa + sta (sreg) +.ENDIF + + rts + +.endproc +