diff options
| author | Duncan Smith | 2010-09-06 19:13:22 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-09-06 19:17:15 -0700 |
| commit | 6481d81a3c961ea4d08bb7cfafe7011ba57fff3d (patch) | |
| tree | fc286280a1a3868d94c690e00ef106dc93fc43d7 /680.inc | |
| parent | 70bc8883020a2da4326439a8308513a7385dc568 (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.inc | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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 |
