This commit is contained in:
folkert van heusden 2024-05-02 21:32:42 +02:00
parent 8072fcbcee
commit 3e8a64144e
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -539,11 +539,15 @@ gam_rc_t cpu::getGAM(const uint8_t mode, const uint8_t reg, const word_mode_t wo
break;
}
assert(g.value < 256 || word_mode == wm_word);
return g;
}
bool cpu::putGAM(const gam_rc_t & g, const uint16_t value)
{
assert(value < 256 || g.word_mode == wm_word);
if (g.addr.has_value()) {
auto rc = b->write(g.addr.value(), g.word_mode, value, g.mode_selection, g.space);