Skip to content

Commit

Permalink
Starting
Browse files Browse the repository at this point in the history
Just starting out. Made changes to the readme and tried a few things in
the main asm file
  • Loading branch information
mojobojo committed Aug 11, 2015
1 parent 645df59 commit cd58d92
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
16 changes: 6 additions & 10 deletions 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
12 changes: 10 additions & 2 deletions src/main.asm
Expand Up @@ -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

0 comments on commit cd58d92

Please sign in to comment.