Browse Source
* No tests current being run in it. * Moved LCD disable/enable into macros. * Created memset function, modified fillTile to use it. * Changed the stack pointer in callRet to $e000 to ensure that LD SP functions as expected.master
Ian Burgmyer
4 years ago
4 changed files with 80 additions and 18 deletions
@ -0,0 +1,35 @@
|
||||
HeaderTitle EQUS "\"MISCINSTRS\"" |
||||
|
||||
include "common/defines.inc" |
||||
include "common/header.inc" |
||||
include "common/functions.inc" |
||||
|
||||
SECTION "home", ROM0 |
||||
ProgramStart: |
||||
call clearLogo |
||||
|
||||
_lcdDisable |
||||
|
||||
; Set a proper grayscale palette. |
||||
ld a, %11100100 |
||||
ldh [$ff47], a |
||||
|
||||
; TODO: Write actual tests. :) |
||||
ld a, $ff |
||||
ld hl, $8014 |
||||
ld [hl], a |
||||
ld hl, $8016 |
||||
ld [hl], a |
||||
ld hl, $8019 |
||||
ld [hl], a |
||||
ld hl, $801b |
||||
ld [hli], a |
||||
ld [hli], a |
||||
ld [hli], a |
||||
ld [hli], a |
||||
ld [hli], a |
||||
call memset |
||||
_lcdEnable |
||||
|
||||
.loop: |
||||
jr .loop |
Loading…
Reference in new issue