; Screen size variables
;
- .export xsize, ysize
- .constructor initscrsize
+ .export screensize
- .include "../cbm/cbm.inc"
+; We will return the values directly instead of banking in the ROM and calling
+; SCREEN which is a lot more overhead in code size and CPU cycles.
-.code
+.proc screensize
-initscrsize:
- jsr SCREEN
- stx xsize
- sty ysize
- rts
+ ldx #40
+ ldy #25
+ rts
-.bss
+.endproc
-xsize: .res 1
-ysize: .res 1