started work on setting text mode

This commit is contained in:
FeralChild64 committed 2020-08-08 15:12:46 +02:00
1 parent 0b9cc2a9ec
commit 333ecf6eba
18 files changed
+247 -79

No files matched your search

+7
View File
@@ -261,6 +261,13 @@
.byte $22, mod(arg, $100), floor(arg / $100)
}
.pseudocommand jsr_ind_x addr
{
.var arg = addr.getValue()
.byte $23, mod(arg, $100), floor(arg / $100)
}
#endif
-7
View File
@@ -70,13 +70,6 @@
.label VIC_XSCAN = $D02F // C128 only
.label VIC_CLKRATE = $D030 // C128 only
#endif
#if CONFIG_MB_MEGA_65
.label VIC_KEY = $D02F
.label VIC_XPOS = $D050
#endif
// SID registers
+24
View File
@@ -0,0 +1,24 @@
//
// Names of hardware registers
//
// See https://github.com/MEGA65/mega65-core/blob/master/iomap.txt
//
#if CONFIG_MB_MEGA_65
// VIC-IV registers
.label VIC_KEY = $D02F
.label VIC_SCFLAGS = $D031
.label VIC_XPOS = $D050
.label VIC_SCRNPTR = $D060 // 4 bytes
.label VIC_COLPTR = $D064 // 2 bytes
.label VIC_CHARPTR = $D068 // 3 bytes
#endif
+9 -2
View File
@@ -24,8 +24,15 @@
// Pages 4-7 - reused screen memory
//
// $400-$57F -- UNUSED -- reserved for BASIC
// $580-$5FF -- UNUSED -- reserved for KERNAL
// $400-$57F - reserved for BASIC
// $400-$57F -- UNUSED -- reserved for BASIC
// $580-$5FF - reserved for KERNAL
.label M65_SCRMODE = $580 // 0 = 40x25, 1 = 80x25, 2 = 80x50, (-- NOT IMPLEMENTED -- add $80 for graphics modes)
.label M65_SCRTXTBASE = $581 // $581-$584 base address of the screen memory for text modes
.label M65_SCRGFXBASE = $585 // $585-$588 -- NOT IMPLEMENTED -- base address of the screen memory for graphics modes
// $589-$5FF -- UNUSED --
.label M65_RS232_INBUF = $600 // $600-$6FF -- reserved for RS-232 input buffer --
.label M65_RS232_OUTBUF = $700 // $700-$7FF -- reserved for RS-232 output buffer --