mirror of
https://github.com/D-Modem/courier-emu.git
synced 2026-11-28 20:38:07 -08:00
C5xCore::data() answers from m_data, which for an address below 0x60 is a cell that no memory-mapped register keeps up to date. DM_READ16 routes those through cpuregs_r; the inspection accessor never did. So every harness that reached for a register got zero however the firmware had set it, and said so confidently: PMST reads 0000, is 00b0 - iptr 0, MP/MC 0, OVLY, RAM and AVIS all set CBSR1 reads 0000, is 0bc0 - the datapump's output buffer CBER1 reads 0000, is 0bdf CBCR reads 0000, is 00ef - circular buffer 1, AR7, enabled, 32 words TDXR reads 0000 - whatever INTR 17's handler has been writing Reading those four was what led to "the firmware never sets up a circular buffer" and "TDXR never changes". Both were the accessor, not the firmware. register_value() answers from the register and has no side effects, which is the difference that matters for an inspection path: cpuregs_r pops the codec queue on DRR and clears the ready flag on TRCV. data() keeps its meaning, so nothing that already treats low addresses as scratch changes behaviour. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>