1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-16 02:10:52 +00:00
cc65/libsrc/nes/_scrsize.s

25 lines
412 B
ArmAsm
Raw Normal View History

;
; 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