summaryrefslogtreecommitdiff
path: root/680.inc
diff options
context:
space:
mode:
authorDuncan Smith2010-09-06 19:13:22 -0700
committerDuncan Smith2010-09-06 19:17:15 -0700
commit6481d81a3c961ea4d08bb7cfafe7011ba57fff3d (patch)
treefc286280a1a3868d94c690e00ef106dc93fc43d7 /680.inc
parent70bc8883020a2da4326439a8308513a7385dc568 (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