Skip to content

Commit

Permalink
Test on_mreq_wait() and on_iorq_wait() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Jun 13, 2021
1 parent 33f7518 commit 94e7774
Show file tree
Hide file tree
Showing 4 changed files with 364 additions and 1 deletion.
12 changes: 12 additions & 0 deletions tests/tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,18 @@ class machine_base : public B {
addr_bus = addr;
}

void on_mreq_wait(fast_u16 addr) {
input.read_and_match("mreq_wait %04x",
static_cast<unsigned>(get_ticks()),
static_cast<unsigned>(addr));
}

void on_iorq_wait(fast_u16 port) {
input.read_and_match("iorq_wait %04x",
static_cast<unsigned>(get_ticks()),
static_cast<unsigned>(port));
}

fast_u8 on_fetch_cycle() {
fast_u16 addr = base::get_pc();
input.read_and_match("fetch %02x at %04x",
Expand Down
Loading

0 comments on commit 94e7774

Please sign in to comment.