home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * m_copmem.c
- * Copyright © 1992 Niklas Röjemo
- */
-
- #include "mnemonics.h"
- #include "error.h"
- #include "option.h"
- #include "input.h"
- #include "expr.h"
- #include "reloc.h"
- #include "put.h"
- #include "area.h"
- #include "get.h"
- #include "help_cop.h"
-
- /** MEMMORY **/
-
-
- static void dstmem(unsigned int ir)
- {
- ir |= CP_NUMBER(help_copInt(15,"coprocessor number"));
- skipblanks();
- if(inputLook() == ',') {inputSkip(); skipblanks();}
- else error(ErrorError,TRUE,"Inserting a comma after coprocessor number.");
- ir |= CPDST_OP(getCopReg());
- ir = help_copAddr(ir);
- putIns(ir);
- }
-
- void m_ldc(unsigned int cc)
- {
- dstmem(cc | 0x0c100000);
- }
-
- void m_stc(unsigned int cc)
- {
- dstmem(cc | 0x0c000000);
- }
-