Write instructions to load F8H in data register REG0 address

Write instructions to load F8H in data register REG0 (address 00), 3AH in REG1 (address 01H), and 62H in(address 02H).

Solution

ORG       0x20

               REG0     EQU       0x00

               REG1     EQU       0x01

               REG2     EQU       0x02

               MOVLW               0xF8

               MOVWF               REG0,0

               MOVLW               0x3A

               MOVWF               REG1,0

               MOVLW               0x62

               MOVWF               REG2, 0

SLEEP

Write instructions to load F8H in data register REG0 (address 00), 3AH in REG1 (address 01H), and 62H in(address 02H).SolutionORG 0x20 REG0 EQU 0x00 REG1 EQU 0x

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site