-
Notifications
You must be signed in to change notification settings - Fork 0
/
manicmower.asm
113 lines (72 loc) · 1.57 KB
/
manicmower.asm
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
;
; Manicmower.asm
;
; Your ass is grass (tm)
;
; Music by Gasman
; Title screen: Oh Crap it's almost the deadline
; Ingame: Ninja Milkman Conspiracy
; Level Complete: Fanfare
; High Score: Decadent Stardust
LUA ALLPASS
sj.insert_define("BUILD_TIMESTAMP", '"' .. os.date("%d/%m/%Y %H:%M:%S") .. '"');
ENDLUA
org 0x8000
include "vars.asm"
init
call init_print
call init_misc
call init_controls
call init_interrupts
ld a, (v_128k_detected)
cp 0
call z, stop_the_tape
after_init
call cls
call set_proportional_font
call main_menu
call cls
call gamemanager
call check_high_score
jp after_init
include "screen.asm"
include "input.asm"
include "misc.asm"
include "gamemanager.asm"
include "highscore.asm"
include "maingame.asm"
include "levels.asm"
include "mainmenu.asm"
include "interrupts.asm"
include "textstrings.asm"
; Hide turboloader here
BLOCK 0xB300-$, 0x00
include "turboloader.asm"
BLOCK 0xB500-$, 0x00
; Interrupt vector table
intvec_table
BLOCK 0xB601-$, 0xFF
;
; AY Module
; Player loads to B700
; Tune loads to C000 in relevant RAM page
BLOCK 0xB700-$, 0x00
ay_player_base
incbin "player.bin"
; Image and graphic assets
BLOCK 0xC000-$, 0x00
include "assets.asm"
BLOCK 0xEC00-$, 0x00
include "highscoredata.asm"
BLOCK 0xEE00-$, 0x00
include "leveldata.asm"
BLOCK 0xF200-$, 0x00
fixed_charset
incbin "fixedchars.dat"
BLOCK 0xF500-$, 0x00
proportional_charset
incbin "proportional.dat"
BLOCK 0xFFF4-$, 0x00
jp interrupt_routine
BLOCK 0xFFFF-$, 0x00
defb 0x18