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

VDP routine YMMM appears to be incorrect #23

Open
suborb opened this issue Mar 25, 2023 · 0 comments
Open

VDP routine YMMM appears to be incorrect #23

suborb opened this issue Mar 25, 2023 · 0 comments

Comments

@suborb
Copy link

suborb commented Mar 25, 2023

There's this bit of code:

        LD      A,L                     ;make NY and DIY
        SUB     A

To make it work (at least for my usecase), this should be:

        LD      A,L                     ;make NY and DIY
        SUB     E

For reference, I'm scrolling the screen up by 8 pixel rows:

    ld      bc,0
    ld      l,8
    ld      e,192
    ld      d,2
    call    ymmm
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

1 participant