diff options
author | 2016-10-24 14:35:16 +0100 | |
---|---|---|
committer | 2016-10-24 14:51:20 +0100 | |
commit | aa2adc489c344dfae8dbb206695b1be8ef3ee27f (patch) | |
tree | 8b21faf7b86b0ce6789068d205af5915dea2ccfd | |
parent | f5c99a808911ba570cdeeb764f60813c42d6e60f (diff) |
removed unnecessary callimport() on A2_TASK, removed unnecessary formatstr() on CURPC & merged A2_MPC with STATE_GENPC (nw)
-rw-r--r-- | src/devices/cpu/alto2/alto2cpu.cpp | 7 | ||||
-rw-r--r-- | src/devices/cpu/alto2/alto2cpu.h | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/devices/cpu/alto2/alto2cpu.cpp b/src/devices/cpu/alto2/alto2cpu.cpp index 7096fb09e3e..f2f566b1dfe 100644 --- a/src/devices/cpu/alto2/alto2cpu.cpp +++ b/src/devices/cpu/alto2/alto2cpu.cpp @@ -885,7 +885,7 @@ void alto2_cpu_device::device_start() hard_reset(); - state_add( A2_TASK, "TASK", m_task).callimport().formatstr("%6s"); + state_add( A2_TASK, "TASK", m_task).formatstr("%6s"); state_add( A2_MPC, "MPC", m_mpc).formatstr("%06O"); state_add( A2_NEXT, "NEXT", m_next).formatstr("%06O"); state_add( A2_NEXT2, "NEXT2", m_next2).formatstr("%06O"); @@ -989,9 +989,8 @@ void alto2_cpu_device::device_start() state_add( A2_OKTORUN, "OKTORUN", m_dsk.ok_to_run).formatstr("%1u"); state_add( A2_READY, "READY", m_dsk.kstat).formatstr("%1u"); - state_add(STATE_GENPC, "GENPC", m_mpc).formatstr("%03X").noshow(); - state_add(STATE_GENPCBASE, "CURPC", m_mpc).formatstr("%03X").noshow(); - state_add(STATE_GENFLAGS, "GENFLAGS", m_aluc0).formatstr("%5s").noshow(); + state_add(STATE_GENPCBASE, "CURPC", m_mpc).noshow(); + state_add(STATE_GENFLAGS, "CURFLAGS", m_aluc0).formatstr("%5s").noshow(); m_icountptr = &m_icount; } diff --git a/src/devices/cpu/alto2/alto2cpu.h b/src/devices/cpu/alto2/alto2cpu.h index 20211b511e7..4c4683f3120 100644 --- a/src/devices/cpu/alto2/alto2cpu.h +++ b/src/devices/cpu/alto2/alto2cpu.h @@ -20,7 +20,7 @@ */ enum { // micro code task, micro program counter, next and next2 - A2_TASK, A2_MPC, A2_NEXT, A2_NEXT2, + A2_MPC = STATE_GENPC, A2_TASK = 0, A2_NEXT, A2_NEXT2, // BUS, ALU, temp, latch, memory latch and carry flags A2_BUS, A2_T, A2_ALU, A2_ALUC0, A2_L, A2_SHIFTER, A2_LALUC0, A2_M, A2_R, // 32 R registers |