-
Notifications
You must be signed in to change notification settings - Fork 1
/
smslib.asm
36 lines (32 loc) · 1.1 KB
/
smslib.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
;====
; SMSLib
;
; Includes the full suite of SMSLib modules. Each module can be included
; individually if desired, but ensure you call their respective init macros
; (if they exist). You can also use init.asm to do this for you.
;
; Usage:
;
; .incdir "./lib/smslib" ; path to SMSLib directory
; .include "smslib.asm" ; import this file
;
; See README.md for documentation regarding each module
;====
; Use basic 48k mapper if none defined
.ifndef mapper.ENABLED
.include "mapper/48k.asm"
.endif
; Intelligent register preservation
.include "utils/clobbers.asm"
.include "utils/preserve.asm"
.include "utils/restore.asm"
; Modules
.include "input.asm" ; handles input
.include "interrupts.asm" ; handles line and frame interrupts
.include "palette.asm" ; handles colors
.include "patterns.asm" ; handles patterns (tile images)
.include "pause.asm" ; handles pause button
.include "sprites.asm" ; handles sprites
.include "tilemap.asm" ; handles tilemap
.include "vdp.asm" ; handles vdp settings
.include "init.asm" ; initialises system and smslib modules