Skip to content

Feature Request - Call Stack #32

@ajgbarnes

Description

@ajgbarnes

I would certainly find it useful if there was a call stack so I can see where a sub-routine has been invoked from in the code. Some are called in multiple places in the code. The stack is a mess most of the time so not that useful just to inspect it (variables written for caching etc) - but if it's possible to capture the calling location on JMP/JSR/Interrupts and remove on RTS/RTI etc and not too much work it'd set this significantly apart from other emulators for debugging.

Maybe with the state of the 6502 registers at the point of call too (slippery slope I know)? Guess it's a simple C array fixed to 256 entries no bigger than the stack that only holds JMP/JSR values and pops them when there's a return etc plus interrupts. Similar for registers.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions