1
0
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:
Peter Evans 2018-01-09 16:24:25 -06:00
parent 7e51339b88
commit de859bcea8

View File

@ -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