Assembly Language please 4

User Generated

graqreohohoh1

Programming

Description

Write a program to monitor Bit PJ3, which is connected to a switch. When it is HIGH, send 55H to the output port, PORTB. You also need to define the PJ3 bit as an input port, and PORTB as an output port.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

SETB PJ3
AGAIN: JNB PJ3, AGAIN
MOV B,#55H
SJMP AGAIN


Anonymous
Awesome! Perfect study aid.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags