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

Example usage #65

Open
ISSOtm opened this issue Aug 8, 2024 · 0 comments
Open

Example usage #65

ISSOtm opened this issue Aug 8, 2024 · 0 comments
Assignees

Comments

@ISSOtm
Copy link
Member

ISSOtm commented Aug 8, 2024

I'm thinking the front page would be appropriate. We would surely want to keep it simple, so I'm thinking of a video of assembling the following ROM and running it in an emulator?

SECTION "Header", ROM0[$100]

EntryPoint:
    jp Main

    ds $150 - @, 0 ; Reserve some space for RGBFIX to fill in the header.

SECTION "Main", ROM0

Main:
    ; Wait for VBlank.
.waitVBlank
    ldh a, [rLY]
    cp 144
    jr nz, .waitVBlank

    ; Move the Nintendo logo left a little.
    ldh a, [rSCX]
    inc a
    ldh [rSCX], a

    ; And keep going!
    jr Main

Originally posted by @ISSOtm in gbdev/rgbobj#9 (comment)

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