CARD: Minor adjustments for v3.x compatibility

This commit is contained in:
Mark Pizzolato 2020-11-06 09:42:18 -08:00
parent 222c9d91b4
commit 9b1dea3a13
2 changed files with 4 additions and 4 deletions

View file

@ -1424,7 +1424,7 @@ return SCPE_OK;
t_stat sim_card_test (DEVICE *dptr) t_stat sim_card_test (DEVICE *dptr)
{ {
t_stat stat = SCPE_OK; t_stat stat = SCPE_OK;
#if defined(USE_SIM_CARD) && defined(SIM_CARD_API) #if defined(USE_SIM_CARD) && defined(SIM_CARD_API) && (SIM_MAJOR > 3)
char cmd[CBUFSIZE]; char cmd[CBUFSIZE];
char saved_filename[4*CBUFSIZE]; char saved_filename[4*CBUFSIZE];
uint16 card_image[80]; uint16 card_image[80];

View file

@ -139,9 +139,9 @@ t_stat sim_card_show_fmt (FILE *st, UNIT *uptr, int32 val, CONST void *desc);
t_stat sim_card_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); t_stat sim_card_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr);
/* Translation tables */ /* Translation tables */
extern CONST char sim_six_to_ascii[64]; /* Map BCD to ASCII */ extern const char sim_six_to_ascii[64]; /* Map BCD to ASCII */
extern CONST char sim_ascii_to_six[128]; /* Map 7 bit ASCII to BCD */ extern const char sim_ascii_to_six[128]; /* Map 7 bit ASCII to BCD */
extern CONST uint8 sim_parity_table[64]; /* 64 entry odd parity table */ extern const uint8 sim_parity_table[64]; /* 64 entry odd parity table */
/* Unit test routine */ /* Unit test routine */
extern t_stat sim_card_test (DEVICE *dptr); extern t_stat sim_card_test (DEVICE *dptr);