initial support for Mega65 extra ROM

This commit is contained in:
FeralChild64 committed 2020-01-10 22:03:10 +01:00
1 parent 7539c6b072
commit 4d56864327
333 files changed
+1747 -289

No files matched your search

+8 -4
View File
@@ -1,9 +1,10 @@
#if ROM_LAYOUT_STD || (ROM_LAYOUT_M65 && SEGMENT_KERNAL_0)
//
// Official Kernal routine, described in:
//
// - [RG64] C64 Programmer's Reference Guide - page 292
// - [CM64] Compute's Mapping the Commodore 64 - page 239
// - [RG64] C64 Programmers Reference Guide - page 292
// - [CM64] Computes Mapping the Commodore 64 - page 239
//
// CPU registers that has to be preserved (see [RG64]): .X, .Y
//
@@ -16,16 +17,19 @@ READST:
cmp #$02
bne !+
// This is RS-232 device - according to 'Compute's Mapping the Commodore 64' page 239
// This is RS-232 device - according to 'Computes Mapping the Commodore 64' page 239
// it reads status from RSSTAT
// XXX 'lda RSSTAT' not possible due to extended scnkey, fix it!
lda #$FF
rts
!:
// According to 'Compute's Mapping the Commodore 64' page 239, it usually retrieves
// According to 'Computes Mapping the Commodore 64' page 239, it usually retrieves
// status from IOSTATUS
// XXX is it always the case if device is not RS-232 ?
lda IOSTATUS
rts
#endif // ROM layout