2001-10-27 17:13:22 +00:00
|
|
|
|
|
|
|
;
|
|
|
|
; Maciej 'YTM/Elysium' Witkowiak
|
|
|
|
;
|
|
|
|
; 27.10.2001
|
2002-03-08 16:47:34 +00:00
|
|
|
; 06.03.2002
|
2001-10-27 17:13:22 +00:00
|
|
|
|
|
|
|
; void screensize (unsigned char* x, unsigned char* y);
|
|
|
|
;
|
|
|
|
|
|
|
|
.export _screensize
|
|
|
|
|
|
|
|
.import popax
|
|
|
|
.importzp ptr1, ptr2
|
2002-03-08 16:47:34 +00:00
|
|
|
.import xsize, ysize
|
2001-10-27 17:13:22 +00:00
|
|
|
|
|
|
|
.include "../inc/geossym.inc"
|
|
|
|
|
|
|
|
_screensize:
|
|
|
|
|
|
|
|
sta ptr1 ; Store the y pointer
|
|
|
|
stx ptr1+1
|
|
|
|
|
|
|
|
jsr popax ; get the x pointer
|
|
|
|
sta ptr2
|
|
|
|
stx ptr2+1
|
|
|
|
|
2002-03-08 16:47:34 +00:00
|
|
|
lda xsize
|
2001-10-27 17:13:22 +00:00
|
|
|
sta (ptr2),y
|
2002-03-08 16:47:34 +00:00
|
|
|
lda ysize
|
2001-10-27 17:13:22 +00:00
|
|
|
sta (ptr1),y
|
|
|
|
rts
|