- Load test_load.gb
- Reset the CPU and clear the memory
- Run until PC == 0x14
- Expect A == 10
- Expect B == 11
- Expect C == 12
- Expect D == 13
- Expect E == 14
- Expect H == 15
- Expect L == 16
- Run until PC == 0x28
- Expect memory[0xFF00] == 0x10
- Expect memory[0xFF10] == 0x12
- Expect memory[0xFF11] == 0x12
- Expect memory[0xFF12] == 0x12
- Expect memory[0xFF13] == 0x12
- Run until PC == 0x36
- Expect memory[0xFF10] == 0xF0
- Expect memory[0xFF11] == 0xF0
- Expect memory[0xFF12] == 0xF0
- Expect memory[0xFF13] == 0xF0
- Run until PC == 0x44
- Expect B == 0xFF
- Expect C == 0x20
- Expect D == 0xFF
- Expect E == 0x21
- Expect H == 0xFF
- Expect L == 0x22
- Expect SP == 0xFF23
- Run until PC == 0x50
- Expect memory[0xFF20] == 0xF0
- Expect memory[0xFF21] == 0xF1
- Expect memory[0xFF22] == 0xF2
- Run until PC == 0x54
- Expect memory[0xFF80] == 0x23
- Expect memory[0xFF81] == 0xFF
- Run until PC == 0x5B
- Expect B == 0xF0
- Expect D == 0xF1
- Expect H == 0xF2
- Run until PC == 0x66
- Expect memory[0xFF60] == 0x66
- Expect A == 0x66
- Run until PC == 0x6C
- Expect H == 0xFF
- Expect L == 0x10
- Run until PC == 0x72
- Expect H = 0xFF
- Expect L = 0x05
- Run until PC == 0x7B
- Expect memory[0xFF80] == 0xFC
- Expect A == 0xFC
- Run until PC == 0x86
- Expect memory[0x1000] == 0x88
- Expect A == 0x88