analog/v2-analog-rev1/serial/serialbuffer.h
David Kuder f7d4779880 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:

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

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

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:05:44 -05:00

24 lines
601 B
C

#pragma once
#include <stdint.h>
#include "common/buffers.h"
extern volatile uint8_t *serial_reg;
void serial_rx_advance();
void serial_rx_push(uint8_t value);
int serial_tx_empty();
uint8_t serial_tx_pop();
void serial_tx_push(uint8_t value);
void serial_fifo_init();
#define ACIA_STATUS_PARITY 0b00000001
#define ACIA_STATUS_FRAMNG 0b00000010
#define ACIA_STATUS_RXOVER 0b00000100
#define ACIA_STATUS_RXFULL 0b00001000
#define ACIA_STATUS_TXEMTY 0b00010000
#define ACIA_STATUS_DCD 0b00100000
#define ACIA_STATUS_DSR 0b01000000
#define ACIA_STATUS_IRQ 0b10000000