aboutsummaryrefslogtreecommitdiff
path: root/src/aextest.dasm
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-03-13 02:50:42 -0400
committerB. Watson <yalhcru@gmail.com>2019-03-13 02:50:42 -0400
commit2973d0c78e9b8eed3c5af239927c6bd36af64604 (patch)
treea0fdfe7201303edd11c6d86015ef4f79796fcf0f /src/aextest.dasm
downloadfujichat-2973d0c78e9b8eed3c5af239927c6bd36af64604.tar.gz
initial commit
Diffstat (limited to 'src/aextest.dasm')
-rw-r--r--src/aextest.dasm52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/aextest.dasm b/src/aextest.dasm
new file mode 100644
index 0000000..da4522b
--- /dev/null
+++ b/src/aextest.dasm
@@ -0,0 +1,52 @@
+
+ processor 6502
+ include equates.inc
+
+init_routine = $2E00
+
+ org init_routine-6
+ word $FFFF
+ word init_routine
+ word end_init_routine-1
+
+ org init_routine
+
+ lda #0
+ sta COLOR2
+
+ lda RTCLOK+2
+iloop:
+ cmp RTCLOK+2
+ beq iloop
+
+ rts
+
+end_init_routine:
+
+ word INITAD
+ word INITAD+1
+ word init_routine
+
+main_routine = $2F00
+ rorg main_routine-6
+ word main_routine
+ word end_main_routine-1
+
+ rorg main_routine
+
+ lda #$0F
+ sta COLOR2
+
+ lda RTCLOK+2
+mloop:
+ cmp RTCLOK+2
+ beq mloop
+
+ rts
+
+end_main_routine:
+
+ word RUNAD
+ word RUNAD+1
+ word main_routine
+