4). Design the program so that when switch is closed, the corresponding LED turns on. Modify the hardware by replacing Port J by H and Port K by Port B. +5V IK R MCU +5V 7407 H 阝 SWO 1 PJO рко H B SWI 3 PK1 .1 i H B 13 5W5 PJ5 PK5 еди DDRB equ $03 PORTH eq $260 PORT B equ $01 DPRH equ $262 ORG $1500 MOUB #$FF, DDRB MOUB #$00, DPRH REPEAT LDAA PORTH STAA PORT B BRA Repeat Can also do: 2 4 LEDO 12 LEDS ORG $1500 LDAA #$00 STAA DDRY LDAA#$FF STAH PDRB

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter13: Creating A Workbook
Section: Chapter Questions
Problem 8QY
icon
Related questions
Question

Alert dont submit AI generated answer.

m68k assembly. Correct answer is written. Please explain it for me. Thank you

4). Design the program so that when switch is closed, the
corresponding LED turns on.
Modify the hardware by replacing Port J by H and Port K by
Port B.
+5V
IK R
MCU
+5V
7407
H
阝
SWO
1
PJO
рко
H
B
SWI
3
PK1
.1
i
H
B
13
5W5
PJ5
PK5
еди
DDRB equ $03
PORTH eq $260
PORT B equ $01
DPRH equ $262
ORG $1500
MOUB #$FF, DDRB
MOUB #$00, DPRH
REPEAT LDAA PORTH
STAA PORT B
BRA Repeat
Can also do:
2
4
LEDO
12
LEDS
ORG $1500
LDAA #$00
STAA DDRY
LDAA#$FF
STAH PDRB
Transcribed Image Text:4). Design the program so that when switch is closed, the corresponding LED turns on. Modify the hardware by replacing Port J by H and Port K by Port B. +5V IK R MCU +5V 7407 H 阝 SWO 1 PJO рко H B SWI 3 PK1 .1 i H B 13 5W5 PJ5 PK5 еди DDRB equ $03 PORTH eq $260 PORT B equ $01 DPRH equ $262 ORG $1500 MOUB #$FF, DDRB MOUB #$00, DPRH REPEAT LDAA PORTH STAA PORT B BRA Repeat Can also do: 2 4 LEDO 12 LEDS ORG $1500 LDAA #$00 STAA DDRY LDAA#$FF STAH PDRB
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage