PIC16F877 asembler

Rasprava o PIC mikrokontrolerima, PIC projekti i drugo vezano za PIC-eve...

Moderators: pedja089, stojke369, [eDo], trax

Post Reply
User avatar
e
Pravo uznapredovao :)
Pravo uznapredovao :)
Posts: 244
Joined: 29-01-2007, 10:41
Location: Bosnia
Contact:

PIC16F877 asembler

Post by e »

treba mi pomoć sa ovim:

1. Write a program in assembly language for Microchip PIC16F877, which:
• reads the data from location 0x21 into register W
• adds to it the value from location 0x22 and 0x23
• stores the result into location 0x24

2. Write a program in assembly language for Microchip PIC16F877, which:
• defines symbolic name VARI for the location 0x21
• defines symbolic name VAR2 for the location 0xA1
• defines symbolic name RES for the location 0x121
• subtracts VAR2 from VARI if VARI is greater than VAR2, and stores the result into
RES
• adds VAR2 to VAR I if VARI is less or equal to VAR2, and stores the result into RES
You wait for revolution, we live revolution.
Post Reply