migrated code to pragma-like ROM layout definitions
This commit is contained in:
1 parent
435ff6bbc2
commit
63c0404313
326 files changed
+1553
-1840
No files matched your search
@@ -1,30 +1,29 @@
|
||||
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
|
||||
|
||||
//
|
||||
// Sets .X to number of open RS-232 channels
|
||||
//
|
||||
|
||||
|
||||
#if HAS_RS232
|
||||
|
||||
|
||||
rs232_count_channels:
|
||||
|
||||
ldx #$00
|
||||
ldy LDTND
|
||||
!:
|
||||
dey
|
||||
bmi close_rs232_search_done
|
||||
lda FAT, y
|
||||
cmp #$02
|
||||
bne !-
|
||||
inx
|
||||
bpl !- // branch always
|
||||
|
||||
rts
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif // ROM layout
|
||||
// #LAYOUT# STD * #TAKE
|
||||
// #LAYOUT# * KERNAL_0 #TAKE
|
||||
// #LAYOUT# * * #IGNORE
|
||||
|
||||
//
|
||||
// Sets .X to number of open RS-232 channels
|
||||
//
|
||||
|
||||
|
||||
#if HAS_RS232
|
||||
|
||||
|
||||
rs232_count_channels:
|
||||
|
||||
ldx #$00
|
||||
ldy LDTND
|
||||
!:
|
||||
dey
|
||||
bmi close_rs232_search_done
|
||||
lda FAT, y
|
||||
cmp #$02
|
||||
bne !-
|
||||
inx
|
||||
bpl !- // branch always
|
||||
|
||||
rts
|
||||
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user