Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed May 8, 2024
1 parent e00890d commit b104844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dc11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ void dc11::write_byte(const uint16_t addr, const uint8_t v)
write_word(addr, vtemp);
}

void dc11::write_word(const uint16_t addr, uint16_t v)
void dc11::write_word(const uint16_t addr, const uint16_t v)
{
int reg = (addr - DC11_BASE) / 2;
int line_nr = reg / 4;
Expand Down
6 changes: 3 additions & 3 deletions dc11.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#define DC11_RCSR 0174000 // receiver status register
#define DC11_BASE DC11_RCSR
#define DC11_END (DC11_BASE + (4 * 4 + 1) * 2) // 4 interfaces, + 2 to point after it
#define DC11_END (DC11_BASE + (4 * 4 + 1) * 2) // 4 interfaces, + 2 to point behind it

class bus;
struct pollfd;
Expand Down Expand Up @@ -63,11 +63,11 @@ class dc11

void reset();

uint8_t read_byte(const uint16_t addr);
uint8_t read_byte(const uint16_t addr);
uint16_t read_word(const uint16_t addr);

void write_byte(const uint16_t addr, const uint8_t v);
void write_word(const uint16_t addr, uint16_t v);
void write_word(const uint16_t addr, const uint16_t v);

void operator()();
};

0 comments on commit b104844

Please sign in to comment.