mirror of
https://github.com/ksherlock/mpw.git
synced 2024-12-22 15:29:45 +00:00
disassembler - short segment / offset were swapped
This commit is contained in:
parent
8db3b90777
commit
bd3e540b89
@ -113,8 +113,8 @@ void code0(uint32_t data_size)
|
||||
}
|
||||
else if (data[1] == 0x3F3C && data[3] == 0xA9F0)
|
||||
{
|
||||
uint16_t segment = data[0];
|
||||
uint16_t segOffset = data[2];
|
||||
uint16_t segOffset = data[0];
|
||||
uint16_t segment = data[2];
|
||||
|
||||
// pc +2 since the first byte is the offset, not code.
|
||||
printf("$%08X %04X : %04X\n", pc + 2, segment, segOffset);
|
||||
|
Loading…
Reference in New Issue
Block a user