diff --git a/README.md b/README.md index 5830750d4..2dc4817db 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,11 @@ -# Game Boy bootstrap +# Links Awakening DX Disassembly -An example project to get would-be Game Boy programmers started without having to read mountains of docs. +Taking on this myself for now. We will see how far I get. -[pypng][pypng] is used to convert png to Game Boy graphics. +Using rom -```bash - pip install pypng +``` +Legend of Zelda, The - Link's Awakening DX (U) (V1.0) [C][!].gbc +MD5 - 07C211479386825042EFB4AD31BB525F ``` -To build, install [rgbds][rgbds] and put it in your path. -Then run `make`. This will output `game.gbc`. - -[pypng]: https://github.com/drj11/pypng -[rgbds]: https://github.com/bentley/rgbds diff --git a/src/main.asm b/src/main.asm index 6e29c0ecf..5bc1c22c9 100644 --- a/src/main.asm +++ b/src/main.asm @@ -13,10 +13,18 @@ include "code/header.asm" section "Main", rom0 Start: - ; There should be some code here. In the meantime, loop forever. - ; Disable interrupts and halt to conserve battery. + cp a, $11 + jr nz, .loc_61E + ld a, [rKEY1] + +.loc_61E + xor a di .loop halt jr .loop + +section "bank1",romx,bank[$1] + xor a +