sonarlint vid_mda.c

This commit is contained in:
Jasmine Iwanek
2023-07-31 14:47:37 -04:00
parent 02ca9f5766
commit cb774d3ce2
2 changed files with 7 additions and 7 deletions

View File

@@ -52,12 +52,12 @@ typedef struct mda_t {
void mda_init(mda_t *mda);
void mda_setcol(int chr, int blink, int fg, uint8_t cga_ink);
void mda_out(uint16_t addr, uint8_t val, void *p);
uint8_t mda_in(uint16_t addr, void *p);
void mda_write(uint32_t addr, uint8_t val, void *p);
uint8_t mda_read(uint32_t addr, void *p);
void mda_out(uint16_t addr, uint8_t val, void *priv);
uint8_t mda_in(uint16_t addr, void *priv);
void mda_write(uint32_t addr, uint8_t val, void *priv);
uint8_t mda_read(uint32_t addr, void *priv);
void mda_recalctimings(mda_t *mda);
void mda_poll(void *p);
void mda_poll(void *priv);
#ifdef EMU_DEVICE_H
extern const device_t mda_device;

View File

@@ -75,7 +75,7 @@ mda_out(uint16_t addr, uint8_t val, void *priv)
uint8_t
mda_in(uint16_t addr, void *priv)
{
mda_t *mda = (mda_t *) priv;
const mda_t *mda = (mda_t *) priv;
switch (addr) {
case 0x3b0:
@@ -107,7 +107,7 @@ mda_write(uint32_t addr, uint8_t val, void *priv)
uint8_t
mda_read(uint32_t addr, void *priv)
{
mda_t *mda = (mda_t *) priv;
const mda_t *mda = (mda_t *) priv;
return mda->vram[addr & 0xfff];
}