Computer Science, asked by Thunder3737, 1 year ago

To find the area of a circle by microcontroller 8051 program

Answers

Answered by saranyaammu3
1

Answer:

here one is internal memory location and other is memory external location. so first the content of ext memory location FF00h is loaded in acc. then the content of int memory location FFh is saved first and then content of acc is transferred to FFh. now saved content of FFh is loaded in acc and then it is transferred to FF00h.

                  Mov dptr, #0FF00h     ; take the address in dptr

                       Movx a, @dptr            ; get the content of 0050h in a

                       Mov r0, 0FFh              ; save the content of 50h in r0

                       Mov 0FFh, a                ; move a to 50h

                       Mov a, r0                     ; get content of 50h in a

                       Movx @dptr, a            ; move it to 0050h

Explanation:

Similar questions