Skip to content

Commit

Permalink
fix print error graphical issue
Browse files Browse the repository at this point in the history
the pokédex was loading the names for the list when they list wasn't even being displayed, that should now be fixed
  • Loading branch information
LeonarthCG committed Apr 20, 2021
1 parent 9377492 commit 46b24e6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ $RECYCLE.BIN/
Event Assembler
ups

#files you are expected to build
graphics/*.bin
compressed/*.bin
compressed/*.bin.dmp
dialogue.event
fontGraphics.event
fontWidth.event
names.event
system.event

# =========================
# Operating System Files
# =========================
Expand Down
Binary file modified asm/pokedex1.bin
Binary file not shown.
6 changes: 6 additions & 0 deletions asm/pokedex1.s
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ push hl

;our new code

;check if we are not in the list
ld a, [$DBCC]
cp a, 0
jp z, end

;get destination
ld a, [$DBE4]
and a, 7
Expand Down Expand Up @@ -53,6 +58,7 @@ ld hl, $A000
call $0FBD

;restore registers and return
end:
pop hl
pop de
pop bc
Expand Down
Binary file modified asm/pokedex2.bin
Binary file not shown.
8 changes: 8 additions & 0 deletions asm/pokedex2.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ push de
push hl

;our new code

;check if we are not in the list
ld a, [$DBCC]
cp a, 0
jp z, end

;
ld a, [$DBC6]
cp a, 0
jp z, is0
Expand Down Expand Up @@ -346,6 +353,7 @@ ld hl, $A000
call $0FBD

;restore registers and return
end:
pop hl
pop de
pop bc
Expand Down

0 comments on commit 46b24e6

Please sign in to comment.