Skip to content

Commit

Permalink
Describe behavior of the HDMA HBlank mode in halt mode (#577)
Browse files Browse the repository at this point in the history
* Add behavior of the HDMA HBlank mode in halt mode

* Add test rom for HDMA HBlank halt behaviour

Co-authored-by: Antonio Vivace <[email protected]>
  • Loading branch information
alloncm and avivace authored Nov 3, 2024
1 parent 47cf0bf commit 01cdc20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CGB_Registers.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ the program execution continues during the "spaces" between each data
block. Note that the program should not change the Destination VRAM bank
(FF4F), or the Source ROM/RAM bank (in case data is transferred from
bankable memory) until the transfer has completed! (The transfer should
be paused as described below while the banks are switched)
be paused as described below while the banks are switched).

Upon halting the CPU (using the [halt instruction](<#Using the HALT Instruction>)),
the transfer will also be halted and will be resumed only when the CPU resumes execution ([test rom](https://github.com/alloncm/MagenTests?tab=readme-ov-file#vram-dma-hblank-mode) exhibiting this behaviour).

Reading from Register FF55 returns the remaining length (divided by $10,
minus 1), a value of $FF indicates that the transfer has completed. It
Expand Down

0 comments on commit 01cdc20

Please sign in to comment.