Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BKPT instruction (68010) pushes a wrong stack frame #236

Open
dirkwhoffmann opened this issue Nov 15, 2022 · 1 comment
Open

BKPT instruction (68010) pushes a wrong stack frame #236

dirkwhoffmann opened this issue Nov 15, 2022 · 1 comment

Comments

@dirkwhoffmann
Copy link

As part of the vAmiga regression test suite, I've written a small program which calls BKPT and dumps the generated stack frame:

On my real machine (A500 ECS, 68010, 512 Chip, 0 Slow, 0 Fast) it looks like this:

stackframe3_A500_ECS_68010

In UAE 4.9.1 I get this:

Bildschirmfoto 2022-11-15 um 16 10 53

It seems like the PC pushed by UAE is too high by 2.

@tonioni
Copy link
Owner

tonioni commented Nov 17, 2022

I am not 100% sure what the output means but if 2/4 means stacked PC is +2/+4 from start of BKPT, I get expected +2 if I check what your test program does in UAE debugger.

00075750 lea.l (pc,$0000) == $00075752,a6
00075754 bkpt #$02

If above suspicious LEA is corrected, it looks like BKPT does not increase PC.
I am planning to do full 68010 tester check later.

(and I still hate adf based test programs :))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants