aboutsummaryrefslogtreecommitdiff
path: root/example.asm
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-01 22:13:54 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-01 22:13:54 +0100
commita13f56016d10edd1bdc76cadbb0f5f7fd11e0970 (patch)
tree0a9b244663f64f69f58715902aa878294fdfc07a /example.asm
parent5c763c23144b04b50e804d4ac7b6504b8f1fcaf6 (diff)
downloadtr8vm-a13f56016d10edd1bdc76cadbb0f5f7fd11e0970.tar.gz
tr8vm-a13f56016d10edd1bdc76cadbb0f5f7fd11e0970.zip
Added equ to assembler
To define constants.
Diffstat (limited to 'example.asm')
-rw-r--r--example.asm8
1 files changed, 6 insertions, 2 deletions
diff --git a/example.asm b/example.asm
index 7d69611..694501c 100644
--- a/example.asm
+++ b/example.asm
@@ -3,10 +3,14 @@
;
.org 0
+; address of the frame interrupt vector
+.equ INT_VECT 0xff00
+
; setup an int handler so we
; can use the frame int to sync
- ld a, 0xff
- ld x, 0
+ ld a, >INT_VECT
+ ld x, <INT_VECT
+
ld b, <int_handler
ld [a : x], b
inc x