summaryrefslogtreecommitdiff
path: root/main.asm
blob: 057bd9b872a5bb8f93b74e0f48fc640ab9ed8ad0 (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
	processor	65c816

	option  output-file,"main.lib"
	option	output-format,lib

	org	$8000
	bank	0

	; Initialise SNES
	;
	include "snes.inc"
	include "macros.inc"

	sei
	clc
	xce

	.x16
	rep     #$10
	ldx     #$1fff
	txs

	.x8
	.m8
	sep     #$30    ; X,Y,A are 8 bit numbers

	include	"init.inc"

	cli

	; Loop forever.
Forever:
	jmp Forever


; IRQ vectors
;

vbl_handler:
	rti

irq_handler:
	rti