more work towards MEGA65 DOS support
This commit is contained in:
1 parent
de7ce30e03
commit
7437dc4548
4 files changed
+11
-8
No files matched your search
@@ -23,6 +23,6 @@ map_BASIC_1:
|
|||||||
taz
|
taz
|
||||||
|
|
||||||
lda #$20
|
lda #$20
|
||||||
ldx #$C2 // 0x4000 <- map 16KB from 0x22000
|
ldx #$C2 // $4000 <- map 16KB from $22000
|
||||||
|
|
||||||
jmp map_end
|
jmp map_end
|
||||||
@@ -62,7 +62,7 @@ map_KERNAL_1:
|
|||||||
tay
|
tay
|
||||||
taz
|
taz
|
||||||
|
|
||||||
ldx #$42 // 0x4000 <- map 8KB from 0x20000
|
ldx #$42 // $4000 <- map 8KB from $20000
|
||||||
|
|
||||||
jmp_8 map_end
|
jmp_8 map_end
|
||||||
|
|
||||||
@@ -78,10 +78,12 @@ map_DOS_1:
|
|||||||
tab // from now on, zeropage starts from $C000
|
tab // from now on, zeropage starts from $C000
|
||||||
|
|
||||||
ldy #$00
|
ldy #$00
|
||||||
taz #$81 // 0xC000 <- map 8KB (4KB useable) from $10000
|
lda #$41
|
||||||
|
taz // $C000 <- map 8KB from $10000
|
||||||
|
|
||||||
tya
|
// XXX what should be the value here??
|
||||||
ldx #$C2 // 0x4000 <- map 16KB from 0x20000
|
lda #$A0
|
||||||
|
ldx #$C2 // $4000 <- map 16KB from ?????
|
||||||
|
|
||||||
map
|
map
|
||||||
jmp_8 map_end_no_eom // no EOM, we do not want interrupts within DOS!
|
jmp_8 map_end_no_eom // no EOM, we do not want interrupts within DOS!
|
||||||
@@ -95,6 +97,6 @@ map_NORMAL_from_DOS_1:
|
|||||||
phz
|
phz
|
||||||
|
|
||||||
lda #$00
|
lda #$00
|
||||||
tba
|
tab
|
||||||
|
|
||||||
jmp_8 map_NORMAL_common
|
jmp_8 map_NORMAL_common
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
m65dos_init:
|
m65dos_init:
|
||||||
|
|
||||||
jsr map_DOS_1
|
jsr map_DOS_1
|
||||||
jsr_ind VDOS_INIT
|
// XXX do after memory mapping is correct: jsr_ind VDOS_INIT
|
||||||
jmp_8 !+
|
jmp_8 !+
|
||||||
|
|
||||||
m65dos_hasunit:
|
m65dos_hasunit:
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ IOINIT:
|
|||||||
|
|
||||||
jsr map_KERNAL_1
|
jsr map_KERNAL_1
|
||||||
jsr_ind VK1__IOINIT
|
jsr_ind VK1__IOINIT
|
||||||
jmp map_NORMAL
|
// End by initializing the MEGA65 internal DOS
|
||||||
|
jmp m65dos_init
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user