12.07.2015 Views

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

MAXQ Core Assembly Guide - Maxim

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.

<strong>MAXQ</strong> <strong>Core</strong> <strong>Assembly</strong> <strong>Guide</strong>Macro Constant Operation Examplesmove Acc, #1 + 1move Acc, #4 - 1move Acc, #2 * 2move Acc, #26 / 5move Acc, #26 % 5move Acc, #MIN(6,7)move Acc, #MAX(6,7); 2 - Addition; 3 - Subtraction; 4 - Multiplication; 5 - Integer division (truncated); 1 - Integer modulus; 6 - Minimum of two values; 7 - <strong>Maxim</strong>um of two valuesmove Acc, #550h | 055h ; 555h - Bitwise ORmove Acc, #550h & 055h ; 050h - Bitwise ANDmove Acc, #550h ^ 055h ; 505h - Bitwise XORmove Acc, #HIGH(1234h) ; 12h - High byte of wordmove Acc, #LOW(1234h) ; 34h - Low byte of wordmove Acc, #NOT(0000h) ; FFFFFFFFh - Bitwise negationmove Acc, #001h > 7 ; 01h - Shift rightmove Acc, #1 AND 0 ; 0 - Logical ANDmove Acc, #1 && 1 ; 1 - Logical ANDmove Acc, #0 OR 0 ; 0 - Logical ORmove Acc, #1 || 10 ; 1 - Logical ORmove Acc, #5 > 3 ; 1 - Greater thanmove Acc, #4 < 3 ; 0 - Less thanmove Acc, #2 >= 2 ; 1 - Greater than or equal tomove Acc, #3

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

Saved successfully!

Ooh no, something went wrong!