8051 programming
8051 programming
to 40h.
Mov b, a ; move it to B
Inc r1
djnz r7, nxt ; decrease r7. if zero then over otherwise move next
Q: Write a assembly language program to continuously scan port P0. If data is other
then FFh write a subroutine that will multiply it with 10d and send it to port P1
Multi
Q: Write a 8051 assembly language program to transfer the block of data from 20h to
Djnz r7, nxt ; decrease r7. if zero then over otherwise move next
Q: Write an 8051 assembly language program to divide the content of r0 by r1. Store
Div ab ; divide A by B
Q: Write program to copy a block of 8 bytes of data to RAM locations starting at 50H from RAM
locations 30H.
Q: Write a program to determine the largest number stored from 2000h onwards (10 locations)
ORG 00H
NE: JC SKIP ;if not equal check for carry, if carry go to skip
END
Q: Add the contents of RAM locations 60H, 61H and 62H. Store the result in RAM locations 41H
(MSB) and 40H (LSB).
MOV 41H, #00H ; Clear the RAM location where MSB has to be stored.