forked from actraiser/dust-tutorial-c64-first-intro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.asm
69 lines (52 loc) · 2.49 KB
/
index.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
;============================================================
; Example Project for C64 Tutorials
; Code by actraiser/Dustlayer
; Music: Ikari Intro by Laxity
;
; Simple Colorwash effect with a SID playing
;
; Tutorial: http://dustlayer.com/c64-coding-tutorials/2013/2/17/a-simple-c64-intro
; Dustlayer WHQ: http://dustlayer.com
;============================================================
;============================================================
; index file which loads all source code and resource files
;============================================================
;============================================================
; specify output file
;============================================================
!cpu 6502
!to "build/hello_world.prg",cbm ; output file
;============================================================
; BASIC loader with start address $c000
;============================================================
* = $0801 ; BASIC start address (#2049)
!byte $0d,$08,$dc,$07,$9e,$20,$34,$39 ; BASIC loader to start at $c000...
!byte $31,$35,$32,$00,$00,$00 ; puts BASIC line 2012 SYS 49152
* = $c000 ; start address for 6502 code
;============================================================
; Main routine with IRQ setup and custom IRQ routine
;============================================================
!source "code/main.asm"
;============================================================
; setup and init symbols we use in the code
;============================================================
!source "code/setup_symbols.asm"
;============================================================
; tables and strings of data
;============================================================
!source "code/data_static_text.asm"
!source "code/data_colorwash.asm"
;============================================================
; one-time initialization routines
;============================================================
!source "code/init_clear_screen.asm"
!source "code/init_static_text.asm"
;============================================================
; subroutines called during custom IRQ
;============================================================
!source "code/sub_colorwash.asm"
!source "code/sub_music.asm"
;============================================================
; load resource files (for this small intro its just the sid)
;============================================================
!source "code/load_resources.asm"