Lab1: First Assembly Code Omar Kassar 201503246 Objective:: Equipment
Lab1: First Assembly Code Omar Kassar 201503246 Objective:: Equipment
Equipment:
• IC: PIC16F84A
• Switches
• LED
• Test board
• PIC programmer
• Resistors (1KOhm and 270ohm)
Ex:
Write a code that does the following computation and send 2 copies of the
answer to the following addresses: 21H and 22H
(1+3)+(4+6)+(7+1)=22(base 10)=16(base 16)=0001 0110(base 2)
# INCLUDE “P16F84A.INC”
RESULT1 EQU 0X21
RESULT2 EQU 0X21
TEMP1 EQU 0X21
TEMP2 EQU 0X21
TEMP3 EQU 0X21