1. The document describes 15 examples of arithmetic operations using 8-bit and 16-bit registers in assembly language. The examples include addition, subtraction, and swapping registers using different addressing modes like immediate and direct.
2. Operations like addition, subtraction and swapping of 8-bit and 16-bit numbers are demonstrated using different addressing modes. Larger 32-bit additions are also performed by combining 16-bit operations.
3. Input and output values are provided for examples using direct addressing mode to demonstrate the arithmetic operations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
99 views10 pages
Mplab: 1.8-Bit Addition Using Immediate Mode
1. The document describes 15 examples of arithmetic operations using 8-bit and 16-bit registers in assembly language. The examples include addition, subtraction, and swapping registers using different addressing modes like immediate and direct.
2. Operations like addition, subtraction and swapping of 8-bit and 16-bit numbers are demonstrated using different addressing modes. Larger 32-bit additions are also performed by combining 16-bit operations.
3. Input and output values are provided for examples using direct addressing mode to demonstrate the arithmetic operations.
3.8-bit subtraction using immediate mode. 1000:0100 MOV AL,0A 0A B0 1000:0102 SUB AL,06 06 2C 1000:0104 INT3 CC OUTPUT: ANS in REGISTER AX Select REGISTER NAME AX = 0004
4.8-bit subtraction using direct
addressing mode. 1000:0100 MOV AL,[2200] 22 00 A0 1000:0103 SUB AL,[2201] 22 01 06 2A 1000:0107 MOV [3000],AL 30 00 A2 1000:010A INT3 CC INPUT: [2200] = 0A [2201] = 06 OUTPUT: ANS in [3000] = 04
5.16-bit addition using immediate
addressing mode. 1000:0100 MOV AX,1234 12 34 B8 1000:0103 ADD AX,7620 76 20 05 1000:0106 INT3 CC OUTPUT: ANS in REGISTER NAME AX 8854