1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 17:29:50 +00:00
cc65/libsrc/nes/_scrsize.s
uz 9c17760227 Corrected screensize function by Stefan Haubenthal.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5026 b7a2c559-68d2-44c3-8de9-860c34a00d81
2011-05-13 15:31:26 +00:00

25 lines
292 B
ArmAsm

;
; Ullrich von Bassewitz, 2003-04-14
; Stefan Haubenthal, 2011-05-11
;
; Screen size function
;
.export screensize
.include "nes.inc"
.include "get_tv.inc"
.proc screensize
jsr _get_tv
ldx #charsperline
ldy #screenrows
cmp #TV::PAL
beq pal
dey ; NTSC rows
pal: rts
.endproc