gbdev / gbdev/pandocs

Document LY reset behavior

Open
#646 2 comments 1 reaction 0 assignees View on GitHub
content good first issue
Dominant language
Markdown
Stars
783
Forks
134
Avg merge
6h 54m
Merged PRs (30d)
3

Description

From [The Cycle-Accurate Game Boy Docs](https://github.com/AntonioND/giibiiadvance/blob/master/docs/TCAGBD.pdf):

"Line 153 takes only a few clocks to complete (the exact timings are below). The rest of the clocks of line 153 are spent in line 0 in mode 1!"

I ran into this behavior debugging Final Fantasy Adventure's intro text scroll.

Quoting @ISSOtm: "LY is reset before VBlank is over". "It's documented neither in the “LCD Status Registers” nor “Rendering”... this is indeed a problem".

Preferably this would be documented visually somehow in [PPU modes](https://gbdev.io/pandocs/Rendering.html#ppu-modes). While it sounds like the real behavior is that LY is wrong for part of line 153 I was looking at the diagram's representation of line 0.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.