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
|
|
|
|
2018-05-22 13:59:05 +00:00
|
|
|
.import popptr1
|
2013-05-09 11:56:54 +00:00
|
|
|
.import screensize
|
2018-05-22 13:59:05 +00:00
|
|
|
.importzp ptr1, ptr2
|
|
|
|
|
2022-04-17 14:06:22 +00:00
|
|
|
.macpack cpu
|
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
|
|
|
|
2018-05-22 13:59:05 +00:00
|
|
|
sta ptr2 ; Store the y pointer
|
|
|
|
stx ptr2+1
|
|
|
|
jsr popptr1 ; Get the x pointer into ptr1
|
2003-04-09 19:34:57 +00:00
|
|
|
jsr screensize ; Get screensize into X/Y
|
|
|
|
tya ; Get Y size into A
|
|
|
|
|
2018-05-22 13:59:05 +00:00
|
|
|
.if (.cpu .bitand ::CPU_ISET_65SC02)
|
|
|
|
sta (ptr2)
|
2003-04-09 19:34:57 +00:00
|
|
|
txa
|
|
|
|
sta (ptr1)
|
2018-05-22 13:59:05 +00:00
|
|
|
.else
|
|
|
|
ldy #0
|
|
|
|
sta (ptr2),y
|
2003-04-09 19:34:57 +00:00
|
|
|
txa
|
2018-05-22 13:59:05 +00:00
|
|
|
sta (ptr1),y
|
2022-04-17 14:06:22 +00:00
|
|
|
.endif
|
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
|
|
|
|