mirror of
https://github.com/V2RetroComputing/analog-firmware.git
synced 2024-06-15 09:29:34 +00:00
Misc tweaks
This commit is contained in:
parent
c8b4ce9631
commit
4bff5c15b5
|
@ -1,6 +1,6 @@
|
|||
#define BUILDDATE 0x20230502
|
||||
#define BUILDID 0x0182
|
||||
#define BUILDSTR " 2 May 2023 Build 0182"
|
||||
#define BUILDDATE 0x20230504
|
||||
#define BUILDID 0x0187
|
||||
#define BUILDSTR " 4 May 2023 Build 0187"
|
||||
|
||||
#ifdef ANALOG_GS
|
||||
#define HWSTRING " V2 Analog GS Rev1"
|
||||
|
|
|
@ -761,11 +761,19 @@ void DELAYED_COPY_CODE(config_handler)() {
|
|||
break;
|
||||
|
||||
case 'R':
|
||||
switch(config_cmdbuf[1]) {
|
||||
default:
|
||||
retval = REPLY_ECMD;
|
||||
break;
|
||||
case 'b':
|
||||
// Reboot and bypass auto-detection of machine type.
|
||||
cfg_machine = current_machine;
|
||||
read_config();
|
||||
write_config(true);
|
||||
flash_reboot();
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'I':
|
||||
switch(config_cmdbuf[1]) {
|
||||
|
|
|
@ -56,8 +56,11 @@ void __time_critical_func(vga_businterface)(uint32_t address, uint32_t value) {
|
|||
}
|
||||
}
|
||||
|
||||
// Nothing left to do for RAM accesses.
|
||||
if(address < 0xc000) return;
|
||||
|
||||
// Shadow the soft-switches by observing all read & write bus cycles
|
||||
if((address & 0xff80) == 0xc000) {
|
||||
if(address < 0xc080) {
|
||||
switch(address & 0x7f) {
|
||||
case 0x00:
|
||||
if((internal_flags & (IFLAGS_IIGS_REGS | IFLAGS_IIE_REGS)) && ACCESS_WRITE) {
|
||||
|
@ -210,7 +213,7 @@ void __time_critical_func(vga_businterface)(uint32_t address, uint32_t value) {
|
|||
break;
|
||||
}
|
||||
} else if(romx_unlocked == 3) {
|
||||
if((address & 0xFFF0) == 0xF810) {
|
||||
if((address >> 4) == 0xF81) {
|
||||
romx_textbank = address & 0xF;
|
||||
}
|
||||
if(address == 0xF851) {
|
||||
|
@ -237,10 +240,10 @@ void __time_critical_func(vga_businterface)(uint32_t address, uint32_t value) {
|
|||
break;
|
||||
}
|
||||
} else if(romx_unlocked == 3) {
|
||||
if((address & 0xFFF0) == 0xCFD0) {
|
||||
if((address >> 4) == 0xCFD) {
|
||||
romx_textbank = address & 0xF;
|
||||
}
|
||||
if((address & 0xFFF0) == 0xCFE0) {
|
||||
if((address >> 4) == 0xCFE) {
|
||||
romx_changed = 1;
|
||||
romx_unlocked = 0;
|
||||
}
|
||||
|
@ -299,10 +302,12 @@ void __time_critical_func(vga_businterface)(uint32_t address, uint32_t value) {
|
|||
apple_memory[address] = (terminal_fifo_rdptr - terminal_fifo_wrptr);
|
||||
break;
|
||||
case 0x0B:
|
||||
#if 0
|
||||
if((value & 0xFF) <= 0x27) {
|
||||
romx_textbank = (value & 0xFF);
|
||||
romx_changed = 1;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
case 0x0C:
|
||||
apple_memory[address] = value;
|
||||
|
|
Loading…
Reference in New Issue
Block a user