MEGA65 banner now displays internal device numbers

This commit is contained in:
FeralChild64 committed 2021-02-03 20:20:10 +01:00
1 parent 92d1ad0177
commit 5f6a8eb7bf
11 files changed
+67 -40

No files matched your search

+5 -6
View File
@@ -3,7 +3,6 @@
;
; NOTES:
; - DOS zeropage is mirrored at $8000
; - starting from $8000, 16KB RAM is available (starting from $10000 in C65 address space)
; - additional 16KB RAM is reserved for DOS too ($14000-$17FFF), and can be banked-in if needed
@@ -13,14 +12,14 @@
; Page 0
;
!addr MAGICSTR = $00 ; magic string; if not matching, DOS considered non-functional
!addr MAGICSTR = $8000 ; magic string; if not matching, DOS considered non-functional
; General DOS configuration
!addr UNIT_SDCARD = $05
!addr UNIT_FLOPPY = $06
!addr UNIT_RAMDISK = $07
!addr UNIT_SDCARD = $8005
!addr UNIT_FLOPPY = $8006
!addr UNIT_RAMDISK = $8007
; General DOS status
!addr UNIT_HANDLER = $08
!addr UNIT_HANDLER = $8008
+7 -6
View File
@@ -20,30 +20,31 @@ dos_UNITNUM:
cmp #$02
beq dos_UNITNUM_ramdisk
lda #$00
; FALLTROUGH
dos_UNITNUM_none:
lda #$00
sec
rts
dos_UNITNUM_sdcard:
lda UNIT_SDCARD
+skip_2_bytes_trash_nvz
bra dos_UNITNUM_common
dos_UNITNUM_floppy:
lda UNIT_FLOPPY
+skip_2_bytes_trash_nvz
bra dos_UNITNUM_common
dos_UNITNUM_ramdisk:
lda UNIT_RAMDISK
bra dos_UNITNUM_common
dos_UNITNUM_common:
cmp #$00
beq dos_UNITNUM_none