File tree Expand file tree Collapse file tree 2 files changed +246
-265
lines changed Expand file tree Collapse file tree 2 files changed +246
-265
lines changed Original file line number Diff line number Diff line change @@ -442,14 +442,15 @@ namespace casioemu {
442
442
output << std::hex << std::setfill (' 0' ) << std::uppercase;
443
443
for (StackFrame frame : stack) {
444
444
output << " function "
445
- << frame.new_csr << " :" << frame.new_pc << " returns to " ;
445
+ << frame.new_csr << " :" << std::setw (4 ) << frame.new_pc
446
+ << " returns to " ;
446
447
if (frame.lr_pushed ) {
447
448
uint16_t saved_lr, saved_lcsr = 0 ;
448
449
MMU &mmu = emulator.chipset .mmu ;
449
450
saved_lr = ((uint16_t )mmu.ReadData (frame.lr_push_address + 1 )) << 8 | mmu.ReadData (frame.lr_push_address );
450
451
if (memory_model == MM_LARGE)
451
- saved_lcsr = mmu.ReadData (frame.lr_push_address + 2 );
452
- output << saved_lcsr << " :" << saved_lr;
452
+ saved_lcsr = mmu.ReadData (frame.lr_push_address + 2 ) & 0xF ;
453
+ output << saved_lcsr << " :" << std::setw ( 4 ) << saved_lr;
453
454
454
455
output << " - lr pushed at "
455
456
<< std::setw (4 ) << frame.lr_push_address ;
You can’t perform that action at this time.
0 commit comments