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

Implemented Bne_un_s instruction #54

Merged
merged 6 commits into from
Sep 20, 2024
Merged

Implemented Bne_un_s instruction #54

merged 6 commits into from
Sep 20, 2024

Conversation

jonathanpeppers
Copy link
Owner

This is very rudimentary branching, programs such as:

pal_all(PALETTE);
byte x = 10;
if (x == 10)
    oam_spr(x, 40, 0x10, 3, 0);
ppu_on_all();
while (true) ;

This works if I change to:

byte x = 40;
if (x == 40)
    oam_spr(x, 40, 0x10, 3, 0);

This is very rudimentary branching, programs such as:

    pal_all(PALETTE);
    byte x = 10;
    if (x == 10)
        oam_spr(x, 40, 0x10, 3, 0);
    ppu_on_all();
    while (true) ;

This works if I change to:

    byte x = 40;
    if (x == 40)
        oam_spr(x, 40, 0x10, 3, 0);
@jonathanpeppers jonathanpeppers merged commit acacf1f into main Sep 20, 2024
1 check passed
@jonathanpeppers jonathanpeppers deleted the Branching branch September 20, 2024 16:09
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

Successfully merging this pull request may close these issues.

1 participant