Skip to content

DIV Test

Optix edited this page Jan 30, 2021 · 1 revision

NOTE: This test is still WIP and may not always provide accurate results.

Metadata

Source File: /src/tests/divtest.asm
Compatible with: All Models

Description

This test verifies the initial value of the DIV register (after a certain period of time it takes the testing framework to boot). The instruction at the TestDIV label loads the current DIV status into a register to compare it against the expected value, which is as follows:

  • DMG/MGB: $AD (Except DMG-0 bootrom)
  • CGB/AGS/AGB: $1F (Except CGB-0 bootrom)
  • SGB/SGB2: $D9

Error Messages

  • Invalid initial DIV - The read DIV value does not match up with the expected value (as shown in the list above)

Clone this wiki locally