home *** CD-ROM | disk | FTP | other *** search
- ; this file contains macros to keep the assembler happy.
- ; you might not need it on newer versions.
- ; MFS and MFL are subtitutes for SFM and LFM, which have the advantage
- ; that they don't insist on writeback
- ;
- ; Copyright (C) 1993 Claus Vohwinkel
- ;
- ; This program is free software; you can redistribute it and/or modify
- ; it under the terms of the GNU General Public License as published by
- ; the Free Software Foundation; either version 2 of the License , or
- ; (at your option) any later version.
- ;
- ; This program is distributed in the hope that it will be useful,
- ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ; GNU General Public License for more details.
- ;
- ; You should have received a copy of the GNU General Public License
- ; along with this program; see the file COPYING. If not, write to
- ; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
- ;
- ; You may contact the author by:
- ; e-mail: vohwinkel@vxdesy.desy.de
- ; us-mail: Claus Vohwinkel
- ; SCRI/FSU
- ; 400 Science Library
- ; Tallahassee, FL 32306
- ;
- ;
-
- CP2 CP 2
- CP1 CP 1
-
- CR00000000 CN 0
- CR00000001 CN 1
- CR00000002 CN 2
- CR00000003 CN 3
- CR00000004 CN 4
- CR00000005 CN 5
- CR00000006 CN 6
- CR00000007 CN 7
- CR00000008 CN 8
- CR00000009 CN 9
- CR0000000A CN 10
- CR0000000B CN 11
- CR0000000C CN 12
- CR0000000D CN 13
- CR0000000E CN 14
- CR0000000F CN 15
-
- GBLA XX
- GBLA YY
-
- MACRO
- $LAB MFL $BASE,$C,$ADR,$OFS
- ASSERT ($C = 1) :LOR: ($C = 2) :LOR: ($C = 3) :LOR: ($C = 4)
- [ $C = 1
- XX SETA $BASE + 8
- $LAB LDC CP2,CR$XX,$ADR,$OFS
- ]
- [ $C = 2
- XX SETA $BASE
- $LAB LDCALL CP2,CR$XX,$ADR,$OFS
- ]
- [ $C = 3
- XX SETA $BASE + 8
- $LAB LDCALL CP2,CR$XX,$ADR,$OFS
- ]
- [ $C = 4
- XX SETA $BASE
- $LAB LDC CP2,CR$XX,$ADR,$OFS
- ]
- MEND
-
- MACRO
- $LAB MFS $BASE,$C,$ADR,$OFS
- ASSERT ($C = 1) :LOR: ($C = 2) :LOR: ($C = 3) :LOR: ($C = 4)
- [ $C = 1
- XX SETA $BASE + 8
- $LAB STC CP2,CR$XX,$ADR,$OFS
- ]
- [ $C = 2
- XX SETA $BASE
- $LAB STCALL CP2,CR$XX,$ADR,$OFS
- ]
- [ $C = 3
- XX SETA $BASE + 8
- $LAB STCALL CP2,CR$XX,$ADR,$OFS
- ]
- [ $C = 4
- XX SETA $BASE
- $LAB STC CP2,CR$XX,$ADR,$OFS
- ]
- MEND
-
- MACRO
- $LAB URDE $DEST,$SRC
- XX SETA $DEST + 8
- YY SETA $SRC
- $LAB CDP CP1,&E,CR$XX,CR00000008,CR$YY,0
- MEND
-
- MACRO
- $LAB URDEZ $DEST,$SRC
- XX SETA $DEST + 8
- YY SETA $SRC
- $LAB CDP CP1,&E,CR$XX,CR00000008,CR$YY,3
- MEND
-
- MACRO
- $LAB URDEP $DEST,$SRC
- XX SETA $DEST + 8
- YY SETA $SRC
- $LAB CDP CP1,&E,CR$XX,CR00000008,CR$YY,1
- MEND
-
- MACRO
- $LAB URDEM $DEST,$SRC
- XX SETA $DEST + 8
- YY SETA $SRC
- $LAB CDP CP1,&E,CR$XX,CR00000008,CR$YY,2
- MEND
-
-
-
- MACRO
- $LAB NRME $DEST,$SRC
- XX SETA $DEST + 8
- YY SETA $SRC
- $LAB CDP CP1,&F,CR$XX,CR00000008,CR$YY,0
- MEND
-
- END
-