Skip to content

Commit

Permalink
interrupts ARE necessary
Browse files Browse the repository at this point in the history
+1 byte
  • Loading branch information
Street-Philosopher committed Jun 18, 2022
1 parent 834c789 commit 8ab7e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions payload/program_en.asm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BOX_DATA = 0xDA96
MON_NUMBER= 0xDA80

; preparation before changing stuff
; di
di
VBlankCheck:
ldh A,(0x44) ; vertical position of scanline
cp A, 0x91 ; when it's 0x91 we just entered VBlank
Expand Down Expand Up @@ -200,4 +200,4 @@ end_overwrite:
ld A,0xE1
ldh (0x40),A
ret
reti
4 changes: 2 additions & 2 deletions payload/program_eu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ MON_NUMBER= 0xDA85


; preparation before changing stuff
; di
di
VBlankCheck:
ldh A,(0x44) ; vertical position of scanline
cp A, 0x91 ; when it's 0x91 we just entered VBlank
Expand Down Expand Up @@ -201,4 +201,4 @@ end_overwrite:
ld A,0xE1
ldh (0x40),A
ret
reti

0 comments on commit 8ab7e0e

Please sign in to comment.