mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-23 13:31:12 +00:00
Fixed off-by-one problem in multiplexer. Improved mega65 conio.
This commit is contained in:
parent
7a8a42bb03
commit
9b5d3f8190
@ -1,6 +1,7 @@
|
||||
// MEGA65 conio.h implementation
|
||||
#include <conio.h>
|
||||
#include <mega65.h>
|
||||
#include <6502.h>
|
||||
|
||||
// The screen width
|
||||
#ifdef __MEGA65_C64__
|
||||
@ -27,18 +28,9 @@ const char CONIO_TEXTCOLOR_DEFAULT = LIGHT_BLUE;
|
||||
// Enable 2K Color ROM
|
||||
void conio_mega65_init() {
|
||||
// Disable BASIC/KERNAL interrupts
|
||||
asm {
|
||||
sei
|
||||
}
|
||||
SEI();
|
||||
// Map memory to BANK 0 : 0x00XXXX - giving access to I/O
|
||||
asm {
|
||||
lda #0
|
||||
tax
|
||||
tay
|
||||
taz
|
||||
map
|
||||
eom
|
||||
}
|
||||
memoryRemap(0,0,0);
|
||||
// Enable the VIC 4
|
||||
*IO_KEY = 0x47;
|
||||
*IO_KEY = 0x53;
|
||||
|
@ -136,6 +136,6 @@ inline char plexFreeNextYpos() {
|
||||
|
||||
// Update the data structure to reflect that a sprite has been shown. This sprite will be free again after 21 lines.
|
||||
inline void plexFreeAdd(char ypos) {
|
||||
PLEX_FREE_YPOS[plex_free_next] = ypos+21;
|
||||
PLEX_FREE_YPOS[plex_free_next] = ypos+22;
|
||||
plex_free_next = (plex_free_next+1)&7;
|
||||
}
|
Loading…
Reference in New Issue
Block a user