Problem 2 (30 pt.): Write an assembly code set for NIOS II processor to copy a l
ID: 3738289 • Letter: P
Question
Problem 2 (30 pt.): Write an assembly code set for NIOS II processor to copy a list of 20 32-bit data at memory location Ox 2F00 to the memory location 0x1E00 every 0.01 millisecond by using a timer. Assume the timer has a register map as below and the clock is 10 MHz. Table 26-3. Register Map- 32-bit Timer Description of Bits Offset Name R/W 15 RUN ?? | ? statua RW control RW periodl RW periodh RW RW RW STOP START Timeout Period-1 (bits (15:0]) Timeout Period-1 (bits (31:161 Counter Snapshot (bits [15:0l) Counter Snapshot (bits (31:161) CONT ITO snapl anaph ote: The base address for the timer is equ TIMER 0x10002000Explanation / Answer
CODE:
LXI H, 2F00H
LXI D, 1E00H
MVI C, 10H
UP:
MOV A, M
STAX D
INX H
INX D
DCR C
JNZ UP
HLT
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.