diff options
| author | Astrid Smith | 2010-09-06 19:13:22 -0700 |
|---|---|---|
| committer | Astrid Smith | 2010-09-06 19:17:15 -0700 |
| commit | c5ebff10feafc1a403ca70e79bb9ac8ffb8aa83d (patch) | |
| tree | 1d981f2719b3d58ec37e9ab958a0c2f2f238f9fa /680.inc | |
| parent | be4e09f43d8dae20e8fff2d0af21f0fc33298954 (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 |
