summaryrefslogtreecommitdiff
path: root/src/rom_header.s
blob: 5ed45124defe58ec58677522a0ee83abd80e8e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@ Note: ROM header data is empty space here.
@       It's populated by gbafix using data provided in the Makefile. 

	.global Start
Start: @ 8000000
	b Init

	.global RomHeaderNintendoLogo
RomHeaderNintendoLogo:
	.space 156

RomHeaderGameTitle:
	.space 12

	.global RomHeaderGameCode
RomHeaderGameCode:
	.space 4

RomHeaderMakerCode:
	.space 2

RomHeaderMagic:
	.byte 0

RomHeaderMainUnitCode:
	.byte 0

RomHeaderDeviceType:
	.byte 0

RomHeaderReserved1:
	.space 7

	.global RomHeaderSoftwareVersion
RomHeaderSoftwareVersion:
	.byte 0

RomHeaderChecksum:
	.byte 0

RomHeaderReserved2:
	.space 2

@ 80000C0
    .word 0

    .global GPIOPortData
GPIOPortData: @ 80000C4
    .2byte 0

    .global GPIOPortDirection
GPIOPortDirection: @ 80000C6
    .2byte 0

    .global GPIOPortReadEnable
GPIOPortReadEnable: @ 80000C8
    .2byte 0

@ 80000CA
    .2byte 0

@ 80000CC
    .space 0x34