analog/v2-analog-rev1/common/buffers.c
David Kuder 0835003caa Build 0159
Progress on PCPI mode bug fixes. PCPI mode is now working again, but the config interface is still broken enough to prevent the use of the config utility while in this mode.. Sending the FORMAT command from the monitor rom returns the card to defaults.
Replace n with the slot number the card is installed in:

]CALL -151
*CnF0:46 4F 52 4D 41 54 00 00

Correction of mousetext / inverse / flashing handling on IIe
see https://github.com/V2RetroComputing/analog/issues/3

Monochrome mode & color palettes are now implemented.
$C0n1: Monochrome mode & palette
  $80: B&W
  $90: Inverse
  $A0: Amber
  $B0: Inverse Amber
  $C0: Green
  $D0: Inverse Green
  $E0: Commodore 64 Theme
  $F0: Use IIgs palette
$C0n2: Mirror of IIgs TBCOLOR register
$C0n3: Mirror of IIgs BORDER register
2023-03-02 11:09:48 -05:00

54 lines
1.8 KiB
C

#include "buffers.h"
volatile uint32_t soft_switches = 0;
volatile uint32_t internal_flags = 0;
volatile uint8_t reset_state = 0;
volatile uint8_t cardslot = 0;
volatile uint32_t busactive = 0;
volatile uint8_t apple_memory[64*1024];
volatile uint8_t private_memory[64*1024];
volatile uint8_t *text_p1 = apple_memory + 0x0400;
volatile uint8_t *text_p2 = apple_memory + 0x0800;
volatile uint8_t *text_p3 = private_memory + 0x0400;
volatile uint8_t *text_p4 = private_memory + 0x0800;
volatile uint8_t *hgr_p1 = apple_memory + 0x2000;
volatile uint8_t *hgr_p2 = apple_memory + 0x4000;
volatile uint8_t *hgr_p3 = private_memory + 0x2000;
volatile uint8_t *hgr_p4 = private_memory + 0x4000;
volatile uint8_t *baseio = apple_memory + 0xc000;
volatile uint8_t *slotio = apple_memory + 0xc080;
volatile uint8_t *slotrom = apple_memory + 0xc100;
volatile uint8_t *extdrom = apple_memory + 0xc800;
/* Slot 1: Grapper */
volatile uint8_t *slot1io = apple_memory + 0xc090;
volatile uint8_t *slot1rom = apple_memory + 0xc100;
/* Slot 2: Super Serial Card */
volatile uint8_t *slot2io = apple_memory + 0xc0a0;
volatile uint8_t *slot2rom = apple_memory + 0xc200;
/* Slot 3: 80 Column Card */
volatile uint8_t *slot3io = apple_memory + 0xc0b0;
volatile uint8_t *slot3rom = apple_memory + 0xc300;
/* Slot 4: PCPI Applicard */
volatile uint8_t *slot4io = apple_memory + 0xc0c0;
volatile uint8_t *slot4rom = apple_memory + 0xc400;
/* Slot 5: Uthernet */
volatile uint8_t *slot5io = apple_memory + 0xc0d0;
volatile uint8_t *slot5rom = apple_memory + 0xc500;
/* Slot 6: Disk II */
volatile uint8_t *slot6io = apple_memory + 0xc0e0;
volatile uint8_t *slot6rom = apple_memory + 0xc600;
/* Slot 7: ProDOS ROM Disk */
volatile uint8_t *slot7io = apple_memory + 0xc0f0;
volatile uint8_t *slot7rom = apple_memory + 0xc700;