-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathROM Buildfile.event
81 lines (67 loc) · 2.03 KB
/
ROM Buildfile.event
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//making the header
#define armJump(label) "WORD 0xEA000000 + (((label-currentoffset-8)/4)&0xFFFFFF)"
ORG $0
armJump(boot) //arm instruction, jump to 0xC0
#incbin "bitmap.bin" //displayed, then checked on bootup, gba hangs without this
BYTE 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 //uppercase ascii, max 12 characters
BYTE 0x20 0x20 0x20 0x20 //uppercase ascii, 4 characters
BYTE 0x20 0x20 //uppercase ascii, 2 characters
BYTE $96 //fixed value
BYTE 0 //main unit, 0 for gba
BYTE 0 //device type
BYTE 0 0 0 0 0 0 0 //some empty bytes
BYTE 0 //software version
BYTE $6C //checksum of bytes A0 to BC, ((0 - each byte) - $19 )&0xFF
SHORT 0 //some empty bytes
//the strings for the header
PUSH; ORG $A0; String(NONOGRAM GBA); POP
PUSH; ORG $AC; String(NONO); POP
PUSH; ORG $B0; String(00); POP
ALIGN 4
bgTilemapsBuffer:
WORD $03000000
WORD $03000800
WORD $03001000
WORD $03001800
ALIGN 4
bgTilemaps:
WORD $0600E000
WORD $0600E800
WORD $0600F000
WORD $0600F800
#include "ASM.event"
#include "Graphics.event"
ALIGN 4
puzzletest:
SHORT 9 9 //puzzle width and height
POIN puzzletestpuzzle //data for the puzzle
POIN puzzletestpalette //palette for the puzzle
POIN gridPALGreen //palette for the grid
POIN backgroundStriped1IMG //graphics for the background
POIN backgroundStriped1PALGreen //palette for the background
SHORT -16 //backgound horizontal speed (this is divided by 128)
SHORT 0 //reserved
ALIGN 4
puzzletest2:
SHORT 10 15 //puzzle width and height
POIN puzzletestpuzzle2 //data for the puzzle
POIN puzzletestpalette2 //palette for the puzzle
POIN gridPALBlue //palette for the grid
POIN backgroundTrianglesIMG //graphics for the background
POIN backgroundTrianglesPALBlue //palette for the background
SHORT 16 //backgound horizontal speed (this is divided by 128)
SHORT 0 //reserved
ALIGN 4
puzzletestpuzzle:
#incbin "Puzzles/test.img.bin"
ALIGN 4
puzzletestpalette:
SHORT 0 8
#incbin "Puzzles/test.pal.bin"
ALIGN 4
puzzletestpuzzle2:
#incbin "Puzzles/test2.img.bin"
ALIGN 4
puzzletestpalette2:
SHORT 0 8
#incbin "Puzzles/test2.pal.bin"