summaryrefslogtreecommitdiff
path: root/test.z80
diff options
context:
space:
mode:
Diffstat (limited to 'test.z80')
-rw-r--r--test.z8033
1 files changed, 24 insertions, 9 deletions
diff --git a/test.z80 b/test.z80
index f43eea0..89c2c1e 100644
--- a/test.z80
+++ b/test.z80
@@ -3,15 +3,30 @@
;
org 0
- ld hl,$1234
+ ld bc,1
+ ld de,2
+ ld hl,3
+ ld ix,4
+ ld iy,5
+
+ push af
+ push bc
+ push de
push hl
+ push ix
+ push iy
+ add a,80
+ ld bc,$ffff
+ ld de,$ffff
+ ld hl,$ffff
+ ld ix,$ffff
+ ld iy,$ffff
+ pop iy
+ pop ix
+ pop hl
+ pop de
+ pop bc
pop af
- ld bc,$5678
- ld de,$9abc
- ld hl,$def0
- ld ix,$dead
- ld iy,$beef
-
loop:
- inc b
- jp loop
+ add ix,bc
+ jr loop