r65c19: Add bank registers to debug state (nw)

This commit is contained in:
AJR 2019-12-16 10:51:14 -05:00
parent 8598b492f6
commit f7e381b5cd
2 changed files with 9 additions and 0 deletions

View File

@ -117,6 +117,9 @@ void c39_device::device_start()
mintf = std::move(intf);
c19_init();
for (int i = 0; i < 8; i++)
state_add(C39_BSR0 + i, string_format("BSR%d", i).c_str(), downcast<mi_banked &>(*mintf).bsr[i]);
}
void r65c19_device::c19_init()

View File

@ -103,6 +103,12 @@ private:
class c39_device : public r65c19_device
{
public:
enum {
C39_BSR0 = R65C19_I + 1,
C39_BSR1, C39_BSR2, C39_BSR3, C39_BSR4, C39_BSR5, C39_BSR6, C39_BSR7
};
protected:
c39_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock, address_map_constructor internal_map);