missing octal-prefix

This commit is contained in:
folkert van heusden 2024-04-04 18:47:24 +02:00
parent 2334daff16
commit d737841ffd
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -279,7 +279,7 @@ void cpu::setPSW(const uint16_t v, const bool limited)
{
if (limited) {
// cannot replace the run-mode bits nor the set of registers
psw = (psw & 177400) | (v & 0377);
psw = (psw & 0177400) | (v & 0377);
}
else {
psw = v & 0174377; // mask off 'unused' bits (8-10)