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

Stack operation and emulation error #10

Open
konvikkor opened this issue Jun 3, 2024 · 3 comments
Open

Stack operation and emulation error #10

konvikkor opened this issue Jun 3, 2024 · 3 comments

Comments

@konvikkor
Copy link

The documentation indicates that when calling the CALL operand, only two bytes are added to the stack instead of three
PCH, and the PCL byte of the PCE is ignored.

@esaulenka
Copy link
Owner

Could you advice, where you found it? As I see, only CALLF pushes 3 bytes, all CALLs pushes only 2 bytes.

@konvikkor
Copy link
Author

image
In this image, you can see that 3 is written instead of 2

@konvikkor konvikkor reopened this Jun 20, 2024
@esaulenka
Copy link
Owner

this CALL writes 0xF258 (2 bytes) to RAM at SP-1, then decreases SP by 2 and then tries to call dynamic pointer (it's not working, but it's another issue)

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