The POST codes are now accessible by the entire emulator, allows easy output filtering by POST cost code (and disabling altogether if the POST code is disabled), useful for debugging.

This commit is contained in:
OBattler
2023-08-14 23:12:46 +02:00
parent 9810269d39
commit b446317b76
2 changed files with 6 additions and 6 deletions

View File

@@ -29,13 +29,11 @@
#include <86box/postcard.h>
#include "cpu.h"
#define POSTCARDS_NUM 4
#define POSTCARD_MASK (POSTCARDS_NUM - 1)
uint8_t postcard_codes[POSTCARDS_NUM];
static uint16_t postcard_port;
static uint8_t postcard_written[POSTCARDS_NUM];
static uint8_t postcard_ports_num = 1;
static uint8_t postcard_codes[POSTCARDS_NUM];
static uint8_t postcard_prev_codes[POSTCARDS_NUM];
#define UISTR_LEN 32
static char postcard_str[UISTR_LEN]; /* UI output string */