From 6481d81a3c961ea4d08bb7cfafe7011ba57fff3d Mon Sep 17 00:00:00 2001 From: Duncan Smith Date: Mon, 6 Sep 2010 19:13:22 -0700 Subject: Registers holding emulated registers are now named. Hopefully 'esp', 'epc', 'eaf', and friends will be less troublesome than 'a4', 'a6', and 'd3'. --- 680.inc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to '680.inc') 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 -- cgit v1.2.3