2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 08.08.1998
|
|
|
|
;
|
|
|
|
; void screensize (unsigned char* x, unsigned char* y);
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export _screensize
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.import popsreg
|
|
|
|
.import screensize
|
|
|
|
.importzp ptr1, sreg
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc _screensize
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
sta ptr1 ; Store the y pointer
|
|
|
|
stx ptr1+1
|
2003-04-09 19:34:57 +00:00
|
|
|
jsr popsreg ; Get the x pointer into sreg
|
|
|
|
jsr screensize ; Get screensize into X/Y
|
|
|
|
tya ; Get Y size into A
|
|
|
|
|
|
|
|
.IFP02
|
2013-05-09 11:56:54 +00:00
|
|
|
ldy #0
|
2003-04-09 19:34:57 +00:00
|
|
|
sta (ptr1),y
|
|
|
|
txa
|
|
|
|
sta (sreg),y
|
|
|
|
.ELSE
|
|
|
|
sta (ptr1)
|
|
|
|
txa
|
|
|
|
sta (sreg)
|
|
|
|
.ENDIF
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2000-10-26 20:43:29 +00:00
|
|
|
.endproc
|
2000-05-28 13:40:48 +00:00
|
|
|
|