openMSX / debugger

31 stars 15 forks source link

VDPDataStore and VDPRegViewer code repetition #159

Open pvmm opened 1 year ago

pvmm commented 1 year ago
    int total = TOTAL_SIZE - !registerLatchAvailable - !paletteLatchAvailable - !dataLatchAvailable;
    new SimpleHexRequest(req, total, regs, *this);

This code block is largely repeated between VDPDataStore and VDPRegViewer. Can we (in a separate commit) reduce this duplication? Ideally store/query this information only in a single location.

_Originally posted by @m9710797 in https://github.com/openMSX/debugger/pull/157#discussion_r1096511840_