gbdev / rgbds-www

RGBDS website, hosting documentation and install instructions. Built with Docusaurus, content from RGBDS man pages.
https://rgbds.gbdev.io
Other
7 stars 7 forks source link

Example usage #65

Open ISSOtm opened 3 months ago

ISSOtm commented 3 months ago

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 https://github.com/gbdev/rgbobj/issues/9#issuecomment-2275272797