Removed (pretty inconsistently used) tab chars from source code base.
This commit is contained in:
@@ -6,26 +6,26 @@
|
||||
; /* Return the video mode the machine is using */
|
||||
;
|
||||
|
||||
.include "vic20.inc"
|
||||
.include "get_tv.inc"
|
||||
.include "vic20.inc"
|
||||
.include "get_tv.inc"
|
||||
|
||||
;--------------------------------------------------------------------------
|
||||
; _get_tv
|
||||
|
||||
.proc _get_tv
|
||||
.proc _get_tv
|
||||
|
||||
NTSC_LINES = 261
|
||||
; detect the system
|
||||
lda #TV::NTSC
|
||||
tax
|
||||
@L0: ldy VIC_HLINE
|
||||
cpy #1
|
||||
bne @L0 ; wait for line 1
|
||||
@L1: ldy VIC_HLINE
|
||||
beq @L2 ; line 0 reached -> NTSC
|
||||
cpy #NTSC_LINES/2+2
|
||||
bne @L1
|
||||
lda #TV::PAL
|
||||
@L2: rts ; system detected: 0 for NTSC, 1 for PAL
|
||||
; detect the system
|
||||
lda #TV::NTSC
|
||||
tax
|
||||
@L0: ldy VIC_HLINE
|
||||
cpy #1
|
||||
bne @L0 ; wait for line 1
|
||||
@L1: ldy VIC_HLINE
|
||||
beq @L2 ; line 0 reached -> NTSC
|
||||
cpy #NTSC_LINES/2+2
|
||||
bne @L1
|
||||
lda #TV::PAL
|
||||
@L2: rts ; system detected: 0 for NTSC, 1 for PAL
|
||||
|
||||
.endproc
|
||||
|
||||
Reference in New Issue
Block a user