Thursday, December 15, 2022

WAP to count from 0 to 20H with a delay of 2ms between each count. After the count 20H, the counter should reset itself and repeat the sequence for 8085 micrprocessor

 MVI A, 00H ; load accumulator with 00H (starting value of counter)

MOV B, 21H ; load B register with delay value (2ms)

LOOP: MOV C, A ; move counter value to C register OUT PORT ; output C register value to port INR A ; increment counter value DCR B ; decrement delay value JNZ LOOP ; jump to LOOP if delay value is not zero MVI A, 00H ; reset counter value to 0 JMP LOOP ; jump to LOOP to repeat sequence

HALT ; end program

No comments:

HackCache ’26: A 48-Hour Online Hackathon Open to Every Student

  Hackathons are often associated with computer science students, experienced developers, and teams that already know exactly what they are...

Popular Posts