summaryrefslogtreecommitdiff
path: root/global.inc
diff options
context:
space:
mode:
Diffstat (limited to 'global.inc')
-rw-r--r--global.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/global.inc b/global.inc
new file mode 100644
index 0000000..9cb3325
--- /dev/null
+++ b/global.inc
@@ -0,0 +1,23 @@
+;; -*- asm -*-
+
+ ;; Register naming
+esp EQUR a4
+ ;; a5 is pointer to base of opcode jump table
+epc EQUR a6
+
+ ;; d0 is scratch generally used in macros
+ ;; d1 is scratch generally used outside macros
+ ;; d2 is scratch and up for grabs
+eaf EQUR d3
+ebc EQUR d4
+ede EQUR d5
+ehl EQUR d6
+eixy EQUR d7
+
+SAVEREG MACRO
+ movem.l d3-d7/a3-a6,-(sp)
+ ENDM
+
+RESTREG MACRO
+ movem.l (sp)+,d3-d7/a3-a6
+ ENDM