11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ORI OR Immediate with Control Register ORIOperation:Assembler Syntax:#xx+D -4 D OR(I) #xx,Dwhere + denotes the logical inclusive OR operatorDescription: Logically OR the 8-bit immediate operand (#xx) with the contents <strong>of</strong> thedestination control register D and store the result in the destination control register. Thecondition codes are affected only when the condition code register is specified as thedestination operand.Restrictions: The ORI #xx,MR instruction cannot be used Immediately before anENDDO or RTI instruction and cannot be one <strong>of</strong> the last three instructions in a DO loop(at LA-2, LA-1, or LA).Example:OR #$8,MR;set scaling mode bit 81 to scale upBefore ExecutionMRI~ ________$0_3 ______ ~MR~I _______After Execution$O_B ______ ~Explanation <strong>of</strong> Example: Prior to execution, the 8-bit mode register (MR) contains thevalue $03. The OR #$8,MR instruction logically ORs the immediate 8-bit value $8 withthe contents <strong>of</strong> the mode register and stores the result in the mode register.Condition Codes:I LF I OM I T I·· I 81 I 80 I 11 I 10 Is I L I E I u I N I z v15 14 13 12 11 10 9 8 7 6 5 4 3 2 o~I

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!