aboutsummaryrefslogtreecommitdiff
path: root/bunny.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-08-09 21:19:36 +0900
committerAstatin <astatin@redacted>2024-08-09 21:19:36 +0900
commit9790dc65026c22f26ea6e247c5506b88f36691a4 (patch)
tree053bced30579170dbeff79946ebcd4c22470f050 /bunny.gbasm
parentbdd60c734a477fc76e4398d9367d7071326d64aa (diff)
Turn off screen during initialization to be compatible with sameboy
Diffstat (limited to 'bunny.gbasm')
-rw-r--r--bunny.gbasm4
1 files changed, 3 insertions, 1 deletions
diff --git a/bunny.gbasm b/bunny.gbasm
index c6a06de..04d14a9 100644
--- a/bunny.gbasm
+++ b/bunny.gbasm
@@ -7,7 +7,7 @@ Initialize_Bunny:
LD $reg_viewport_x, A
LD A, $50
LD $mem_bunny_x_px, A
- LD A, $50
+ LD A, $48
LD $mem_bunny_y_px, A
RET
@@ -178,6 +178,7 @@ Display_Bunny: ; X position in $81, Y position in $80
LD A, B
LD (HL+), A
LD A, E
+ INC A
LD (HL+), A
LD A, D
LD (HL+), A
@@ -193,6 +194,7 @@ Display_Bunny: ; X position in $81, Y position in $80
LD (HL+), A
LD A, E
XOR $02
+ INC A
LD (HL+), A
LD A, D
LD (HL+), A