mirror of
https://github.com/cc65/cc65.git
synced 2024-08-30 01:29:41 +00:00
25 lines
284 B
ArmAsm
25 lines
284 B
ArmAsm
;
|
|
; Ullrich von Bassewitz, 2003-04-14
|
|
; Stefan Haubenthal, 2007-01-21
|
|
;
|
|
; Screen size function
|
|
;
|
|
|
|
.export screensize
|
|
|
|
.include "nes.inc"
|
|
.include "get_tv.inc"
|
|
|
|
|
|
.proc screensize
|
|
|
|
jsr _get_tv
|
|
ldx #charsperline
|
|
ldy #screenrows
|
|
cmp #TV::NTSC
|
|
beq nopal
|
|
dey
|
|
nopal: rts
|
|
|
|
.endproc
|