Skip to content

Instantly share code, notes, and snippets.

@jeremyBanks
Created July 28, 2018 08:49
Show Gist options
  • Save jeremyBanks/b3ccc4d202920831660cad4bf7293efb to your computer and use it in GitHub Desktop.
Save jeremyBanks/b3ccc4d202920831660cad4bf7293efb to your computer and use it in GitHub Desktop.
0x0000:
LD SP, 0xFFFE
XOR A, A
LD HL, 0x9FFF
0x0007:
LD (HL-), A
BIT 7, H
JR NZ, 0x00FB
LD HL, 0xFF26
LD C, 0x11
LD A, 0x80
LD (HL-), A
LD (0xFF00 + C), A
INC C
LD A, 0xF3
LD (0xFF00 + C), A
LD (HL-), A
LD A, 0x77
LD (HL), A
LD A, 0xFC
LD (0xFF00 + 0x47), A
LD DE, 0x0104
LD HL, 0x8010
0x0027:
LD A, (DE)
CALL 0x0095
CALL 0x0096
INC DE
LD A, E
CP A, 0x34
JR NZ, 0x00F3
LD DE, 0x00D8
LD B, 0x08
0x0039:
LD A, (DE)
INC DE
LD (HL+), A
INC HL
DEC B
JR NZ, 0x00F9
LD A, 0x19
LD (0x9910), A
LD HL, 0x992F
0x0048:
LD C, 0x0C
0x004A:
DEC A
JR Z, 0x0008
LD (HL-), A
DEC C
JR NZ, 0x00F9
LD L, 0x0F
JR 0xF3
LD H, A
LD A, 0x64
LD D, A
LD (0xFF00 + 0x42), A
LD A, 0x91
LD (0xFF00 + 0x40), A
INC B
0x0060:
LD E, 0x02
0x0062:
LD C, 0x0C
0x0064:
LD A, (0xFF00 + 0x44)
CP A, 0x90
JR NZ, 0x00FA
DEC C
JR NZ, 0x00F7
DEC E
JR NZ, 0x00F2
LD C, 0x13
INC H
LD A, H
LD E, 0x83
CP A, 0x62
JR Z, 0x0006
LD E, 0xC1
CP A, 0x64
JR NZ, 0x0006
0x0080:
LD A, E
LD (0xFF00 + C), A
INC C
LD A, 0x87
LD (0xFF00 + C), A
0x0086:
LD A, (0xFF00 + 0x42)
SUB A, B
LD (0xFF00 + 0x42), A
DEC D
JR NZ, 0x00D2
DEC B
JR NZ, 0x004F
LD D, 0x20
JR 0xCB
LD C, A
0x0096:
LD B, 0x04
0x0098:
PUSH BC
RL C
RL_A
POP BC
RL C
RL_A
DEC B
JR NZ, 0x00F5
LD (HL+), A
INC HL
LD (HL+), A
INC HL
RET
0x00A8:
DATA 0xCEED6666CC0D000B03730083000C000D0008111F8889000EDCCC6EE6
DATA 0xDDDDD999BBBB67636E0EECCCDDDC999FBBB9333E3C42B9A5B9A5423C
0x00E0:
LD HL, 0x0104
LD DE, 0x00A8
0x00E6:
LD A, (DE)
INC DE
CP A, (HL)
0x00E9:
JR NZ, 0x00FE
INC HL
LD A, L
CP A, 0x34
JR NZ, 0x00F5
LD B, 0x19
LD A, B
0x00F4:
ADD A, (HL)
INC HL
DEC B
JR NZ, 0x00FB
ADD A, (HL)
0x00FA:
JR NZ, 0x00FE
LD A, 0x01
LD (0xFF00 + 0x50), A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment