Blame | Last modification | View Log | Download | RSS feed
ifndef emulmspinc ; avoid multiple inclusionemulmspinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File EMULMSP.INC *;* *;* Purpose : contains emulated MSP430 instructions (obsolete) *;* *;****************************************************************************if (MOMCPUNAME<>"MSP430")&&(MOMCPUNAME<>"MSP430X")fatal "Wrong target selected: only MSP430(X) allowed."endifif MOMPASS=1message "MSP430 Instruction Definitions (C) 1996/2007 Alfred Arnold, Jose Da Silva"endif;----------------------------------------------------------------------------; Arithmetic Instructionsadc macro opaddc.attribute #0,opendmdadc macro opdadd.attribute #0,opendmdec macro opsub.attribute #1,opendmdecd macro opsub.attribute #2,opendminc macro opadd.attribute #1,opendmincd macro opadd.attribute #2,opendmsbc macro opsubc.attribute #0,opendm;----------------------------------------------------------------------------; Logic Instructionsinv macro opxor.attribute #-1,opendmrla macro opadd.attribute op,opendmrlc macro opaddc.attribute op,opendm;----------------------------------------------------------------------------; Data Transferclr macro opmov.attribute #0,opendmclrc macrobic #1,srendmclrn macrobic #4,srendmclrz macrobic #2,srendmpop macro opmov @sp+,opendmsetc macrobis #1,srendmsetn macrobis #4,srendmsetz macrobis #2,srendmtst macro opcmp.attribute #0,opendm;----------------------------------------------------------------------------; Branching and Jumpingbr macro opmov op,pcendmdint macrobic #8,srendmeint macrobis #8,srendmnop macro.word 04303h ; AS would reject the symbolic instructionendmret macromov @sp+,pcendmjlo macro labeljnc labelendmjhs macro labeljc labelendmjeq macro labeljz labelendmrestore ; re-allow listingendif ; emulmspinc