Skip to content

Commit 01cdc20

Browse files
alloncmavivace
andauthored
Describe behavior of the HDMA HBlank mode in halt mode (#577)
* 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]>
1 parent 47cf0bf commit 01cdc20

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CGB_Registers.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ the program execution continues during the "spaces" between each data
7979
block. Note that the program should not change the Destination VRAM bank
8080
(FF4F), or the Source ROM/RAM bank (in case data is transferred from
8181
bankable memory) until the transfer has completed! (The transfer should
82-
be paused as described below while the banks are switched)
82+
be paused as described below while the banks are switched).
83+
84+
Upon halting the CPU (using the [halt instruction](<#Using the HALT Instruction>)),
85+
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).
8386

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

0 commit comments

Comments
 (0)