Skip to content

Commit

Permalink
Fix the assert message when reading from incorrect bank
Browse files Browse the repository at this point in the history
  • Loading branch information
ISSOtm committed Jun 19, 2024
1 parent d9c93d8 commit 1f5031f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vwf.asm
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ TickVWFEngine:: ; Note that a lot of local labels in this loop are jumped to fro
; any effect in a particular instance.
runtime_assert TickVWFEngine, [wNbPixelsDrawn] < 8, "VWF engine cannot draw correctly with un-flushed tile! (Either you forgot to call PrintVWFChars, or you found a bug internal to gb-vwf :D)"

runtime_assert TickVWFEngine, &de == [wSourceBank], "Text should be read from \{[wSourceBank],$\}:\{de:4$\}, \{&de,$\}:\{de:4$\} is loaded instead"
runtime_assert TickVWFEngine, &de == [wSourceBank], "Text should be read from \{[wSourceBank],$\}:\{de,4$\}, \{&de,$\}:\{de,4$\} is loaded instead"
ld a, [de]
inc de ; By default, a character should be consumed. This will seldom be cancelled.
add a, a
Expand Down

0 comments on commit 1f5031f

Please sign in to comment.