This commit is contained in:
2022-11-03 20:16:11 -07:00
parent 005bd76e6b
commit 7018a2998a
2 changed files with 21 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ auto Ref(Machine & m, ValueType instruction, std::size_t k, ValueType p)
case 1:
return v;
case 2:
return m.At(m.Rel(v));
return m.Rel(v);
default:
throw BadInstruction{"invalid addressing mode"};
}