mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-17 15:07:10 +00:00
We were not obeying little-endianness here
This commit is contained in:
parent
7e51339b88
commit
de859bcea8
@ -359,8 +359,8 @@ mos6502_dis_jump_label(mos6502 *cpu,
|
|||||||
// of the operand as a kind of double pointer, or just re-watch
|
// of the operand as a kind of double pointer, or just re-watch
|
||||||
// Inception.
|
// Inception.
|
||||||
case IND:
|
case IND:
|
||||||
jump_loc = vm_segment_get(cpu->memory, operand) << 8;
|
jump_loc = vm_segment_get(cpu->memory, operand + 1) << 8;
|
||||||
jump_loc |= vm_segment_get(cpu->memory, operand + 1);
|
jump_loc |= vm_segment_get(cpu->memory, operand);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// In relative address mode, the jump location will be a
|
// In relative address mode, the jump location will be a
|
||||||
|
Loading…
Reference in New Issue
Block a user