1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-29 18:54:55 +00:00

Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
jespergravgaard 2020-12-27 18:42:25 +01:00
commit 043b6e29b5
9 changed files with 24 additions and 13 deletions

View File

@ -0,0 +1,6 @@
ldy #0
lda {c1},x
sta ({z1}),y
iny
lda {c1}+1,x
sta ({z1}),y

View File

@ -0,0 +1,5 @@
lda {c1},x
sta ({z1}),y
iny
lda {c1}+1,x
sta ({z1}),y

View File

@ -0,0 +1,2 @@
ldy #{c1}+1
lda ({z1}),y

View File

@ -0,0 +1,2 @@
iny
lda ({z1}),y

View File

@ -0,0 +1 @@
lda ({z1}),y

View File

@ -0,0 +1,3 @@
sec
lda ({z1}),y
sbc #1

View File

@ -480,7 +480,7 @@ public class KickC implements Callable<Integer> {
String emuOptions = ""; String emuOptions = "";
if(emulator.equals("C64Debugger")) { if(emulator.equals("C64Debugger")) {
Path viceSymbolsPath = outputDir.resolve(outputFileNameBase + ".vs"); Path viceSymbolsPath = outputDir.resolve(outputFileNameBase + ".vs");
emuOptions = "-symbols " + viceSymbolsPath + " -wait 2500" + " "; emuOptions = "-symbols " + viceSymbolsPath + " -autojmp -prg ";
} }
// The program names used by VICE emulators // The program names used by VICE emulators
List<String> viceEmus = Arrays.asList("x64", "x64sc", "x128", "x64dtv", "xcbm2", "xcbm5x0", "xpet", "xplus4", "xscpu64", "xvic"); List<String> viceEmus = Arrays.asList("x64", "x64sc", "x128", "x64dtv", "xcbm2", "xcbm5x0", "xpet", "xplus4", "xscpu64", "xvic");

View File

@ -1,6 +1,7 @@
// MEGA65 conio.h implementation // MEGA65 conio.h implementation
#include <conio.h> #include <conio.h>
#include <mega65.h> #include <mega65.h>
#include <6502.h>
// The screen width // The screen width
#ifdef __MEGA65_C64__ #ifdef __MEGA65_C64__
@ -27,18 +28,9 @@ const char CONIO_TEXTCOLOR_DEFAULT = LIGHT_BLUE;
// Enable 2K Color ROM // Enable 2K Color ROM
void conio_mega65_init() { void conio_mega65_init() {
// Disable BASIC/KERNAL interrupts // Disable BASIC/KERNAL interrupts
asm { SEI();
sei
}
// Map memory to BANK 0 : 0x00XXXX - giving access to I/O // Map memory to BANK 0 : 0x00XXXX - giving access to I/O
asm { memoryRemap(0,0,0);
lda #0
tax
tay
taz
map
eom
}
// Enable the VIC 4 // Enable the VIC 4
*IO_KEY = 0x47; *IO_KEY = 0x47;
*IO_KEY = 0x53; *IO_KEY = 0x53;

View File

@ -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. // 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) { 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; plex_free_next = (plex_free_next+1)&7;
} }