Mercurial > repos > blastem
comparison debug.c @ 985:751280fb4494
Fix interrupt latency from STOP instruction status reg changes. Fix modified code patching when non-standard aliases are used. This fixes the demo MDEM's First
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 24 Apr 2016 21:23:28 -0700 |
parents | f33e8d88ab6f |
children | 22e87b739ad6 |
comparison
equal
deleted
inserted
replaced
984:bd4d698d995b | 985:751280fb4494 |
---|---|
570 if (stack >= 0xE00000) { | 570 if (stack >= 0xE00000) { |
571 stack &= 0xFFFF; | 571 stack &= 0xFFFF; |
572 uint8_t non_adr_count = 0; | 572 uint8_t non_adr_count = 0; |
573 do { | 573 do { |
574 uint32_t bt_address = ram[stack/2] << 16 | ram[stack/2+1]; | 574 uint32_t bt_address = ram[stack/2] << 16 | ram[stack/2+1]; |
575 bt_address = get_instruction_start(context->native_code_map, bt_address - 2); | 575 bt_address = get_instruction_start(context->options, context->native_code_map, bt_address - 2); |
576 if (bt_address) { | 576 if (bt_address) { |
577 stack += 4; | 577 stack += 4; |
578 non_adr_count = 0; | 578 non_adr_count = 0; |
579 uint16_t *bt_pc = NULL; | 579 uint16_t *bt_pc = NULL; |
580 if (bt_address < 0x400000) { | 580 if (bt_address < 0x400000) { |