-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
613 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
.gbheader | ||
name "microtest" | ||
nintendologo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 63 | ||
.define DELAY 62 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,58 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
.define SPRITEY 16 | ||
.define SCROLL 1 | ||
.define RESULT $83 | ||
|
||
.define FLAG_LCD_ON %10000000 | ||
.define FLAG_WIN_MAP1 %01000000 | ||
.define FLAG_WIN_ON %00100000 | ||
.define FLAG_TILE0 %00010000 | ||
.define FLAG_BG_MAP1 %00001000 | ||
.define FLAG_TALL_OBJ %00000100 | ||
.define FLAG_OBJ_ON %00000010 | ||
.define FLAG_BG_ON %00000001 | ||
|
||
main: | ||
lcd_off_unsafe | ||
ld a, 0 | ||
ldh (LCDC), a | ||
|
||
ld a, 0 | ||
ld b, 160 | ||
ld hl, $FE00 | ||
- ld (hl+), a | ||
dec b | ||
jr nz, - | ||
|
||
load_sprite 0 SPRITEY SPRITEX 0 0 | ||
ld hl, $FE00 | ||
ld a, SPRITEY | ||
ld (hl+), a | ||
ld a, SPRITEX | ||
ld (hl+), a | ||
ld a, 0 | ||
ld (hl+), a | ||
ld a, 0 | ||
ld (hl+), a | ||
|
||
ld a, 1 | ||
ld a, SCROLL | ||
ldh (SCX), a | ||
|
||
lcd_on_sprites | ||
ld a, FLAG_LCD_ON | FLAG_BG_ON | FLAG_TILE0 | FLAG_OBJ_ON | ||
ldh (LCDC), a | ||
nops 114 - 2 | ||
|
||
nops DELAY | ||
test_finish_stat RESULT | ||
|
||
ldh a, (STAT) | ||
|
||
cp RESULT | ||
jr z, + | ||
ld a, $FF | ||
- ld (VRAM), a | ||
jr - | ||
|
||
+ ld a, $F0 | ||
- ld (VRAM), a | ||
jr - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,58 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
.define SPRITEY 16 | ||
.define SCROLL 1 | ||
.define RESULT $80 | ||
|
||
.define FLAG_LCD_ON %10000000 | ||
.define FLAG_WIN_MAP1 %01000000 | ||
.define FLAG_WIN_ON %00100000 | ||
.define FLAG_TILE0 %00010000 | ||
.define FLAG_BG_MAP1 %00001000 | ||
.define FLAG_TALL_OBJ %00000100 | ||
.define FLAG_OBJ_ON %00000010 | ||
.define FLAG_BG_ON %00000001 | ||
|
||
main: | ||
lcd_off_unsafe | ||
ld a, 0 | ||
ldh (LCDC), a | ||
|
||
ld a, 0 | ||
ld b, 160 | ||
ld hl, $FE00 | ||
- ld (hl+), a | ||
dec b | ||
jr nz, - | ||
|
||
load_sprite 0 SPRITEY SPRITEX 0 0 | ||
ld hl, $FE00 | ||
ld a, SPRITEY | ||
ld (hl+), a | ||
ld a, SPRITEX | ||
ld (hl+), a | ||
ld a, 0 | ||
ld (hl+), a | ||
ld a, 0 | ||
ld (hl+), a | ||
|
||
ld a, 1 | ||
ld a, SCROLL | ||
ldh (SCX), a | ||
|
||
lcd_on_sprites | ||
ld a, FLAG_LCD_ON | FLAG_BG_ON | FLAG_TILE0 | FLAG_OBJ_ON | ||
ldh (LCDC), a | ||
nops 114 - 2 | ||
|
||
nops DELAY | ||
test_finish_stat RESULT | ||
|
||
ldh a, (STAT) | ||
|
||
cp RESULT | ||
jr z, + | ||
ld a, $FF | ||
- ld (VRAM), a | ||
jr - | ||
|
||
+ ld a, $F0 | ||
- ld (VRAM), a | ||
jr - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define DELAY 61 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define DELAY 62 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define DELAY 61 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define DELAY 62 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define DELAY 62 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define DELAY 63 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define DELAY 62 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define DELAY 63 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define DELAY 62 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define DELAY 63 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 64 | ||
.define DELAY 62 | ||
.define RESULT $83 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.include "header.inc" | ||
|
||
.define DELAY 65 | ||
.define DELAY 63 | ||
.define RESULT $80 | ||
.define SPRITEX 0 | ||
.define SPRITEY 0 | ||
|
Oops, something went wrong.