Skip to content

Commit

Permalink
Print stack functionality
Browse files Browse the repository at this point in the history
Signed-off-by: sukhman-sukh <[email protected]>
  • Loading branch information
sukhman-sukh committed Nov 6, 2023
1 parent 623f308 commit c9bb618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7885,5 +7885,5 @@ void CPU::updateTimers(int cycles)
void CPU::printStack() {
printf("Printing Stack....");
for(Word i = reg_SP.dat ; i <= 0xCFFF ; i++)
printf("Address at stack_pointer %hu is %hu ", i, (*mMap)[i]);
printf("Address at stack_pointer %hu is %hu \n", i, (*mMap)[i]);
}
2 changes: 1 addition & 1 deletion src/gameBoy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void GBE::debug_int()
shouldAdv = true;
break;
case SDLK_i:
printf("Info Mode:- ");
printf("Info Mode:- \n");
infoMode = true;
shouldAdv = true;
// Press r to print all registers
Expand Down

0 comments on commit c9bb618

Please sign in to comment.