Fix botched disassembler backport
This commit is contained in:
+2
-2
@@ -572,7 +572,7 @@ static uint32_t dasmLine(DasmOutput *ret, unsigned index,
|
||||
line->isPC = isPC;
|
||||
|
||||
/* Fetch first code halfword */
|
||||
code[0] = vbFetch(sim, address);
|
||||
code[0] = vbRead(sim, address, VB_U16);
|
||||
line->code[0] = code[0];
|
||||
line->code[1] = code[0] >> 8;
|
||||
|
||||
@@ -583,7 +583,7 @@ static uint32_t dasmLine(DasmOutput *ret, unsigned index,
|
||||
|
||||
/* Fetch second code halfword if necessary */
|
||||
if (line->codeLength == 4) {
|
||||
code[1] = vbFetch(sim, address + 2);
|
||||
code[1] = vbRead(sim, address + 2, VB_U16);
|
||||
line->code[2] = code[1];
|
||||
line->code[3] = code[1] >> 8;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user