1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-09-29 11:55:01 +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
// Inception.
case IND:
jump_loc = vm_segment_get(cpu->memory, operand) << 8;
jump_loc |= vm_segment_get(cpu->memory, operand + 1);
jump_loc = vm_segment_get(cpu->memory, operand + 1) << 8;
jump_loc |= vm_segment_get(cpu->memory, operand);
break;
// In relative address mode, the jump location will be a