chore: squash bugs preventing swi_demo.gba from working

This commit is contained in:
2022-02-13 00:34:47 -04:00
parent 8ab7a178c1
commit d2740e30d9
3 changed files with 4 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ pub fn format10(comptime L: bool, comptime offset: u5) InstrFn {
const rb = opcode >> 3 & 0x7;
const rd = opcode & 0x7;
const address = cpu.r[rb] + (offset << 1);
const address = cpu.r[rb] + (@as(u6, offset) << 1);
if (L) {
// LDRH