summaryrefslogtreecommitdiff
path: root/680.inc
diff options
context:
space:
mode:
authorAstrid Smith2010-09-06 19:13:22 -0700
committerAstrid Smith2010-09-06 19:17:15 -0700
commitc5ebff10feafc1a403ca70e79bb9ac8ffb8aa83d (patch)
tree1d981f2719b3d58ec37e9ab958a0c2f2f238f9fa /680.inc
parentbe4e09f43d8dae20e8fff2d0af21f0fc33298954 (diff)
Registers holding emulated registers are now named.
Hopefully 'esp', 'epc', 'eaf', and friends will be less troublesome than 'a4', 'a6', and 'd3'.
Diffstat (limited to '680.inc')
-rw-r--r--680.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/680.inc b/680.inc
index c22f8df..75b9b3a 100644
--- a/680.inc
+++ b/680.inc
@@ -1,5 +1,14 @@
;; -*- asm -*-
+ ;; Register naming
+esp EQUR a4
+epc EQUR a6
+
+eaf EQUR d3
+ebc EQUR d4
+ede EQUR d5
+ehl EQUR d6
+eixy EQUR d7
SAVEREG MACRO
movem d3-d7/a3-a6,-(sp)
@@ -8,3 +17,19 @@ SAVEREG MACRO
RESTREG MACRO
movem (sp)+,d3-d7/a3-a6
ENDM
+
+;; pushm MACRO
+;; movem \1,-(sp)
+;; ENDM
+
+;; popm MACRO
+;; movem (sp)+,\1
+;; ENDM
+
+;; push MACRO
+;; move.\0 \1,-(sp)
+;; ENDM
+
+;; pop MACRO
+;; move.\0 (sp)+,\1
+;; ENDM