For the purpose of this lab, we are interested in using the ARC simulator to use: The console output port to display characters The keyboard input port to read characters 1) Please provide comments...


Can u answer number 2 and 3 of part A


Please I will rate you if answer is correct


For the purpose of this lab, we are interested in using the ARC simulator to use:<br>The console output port to display characters<br>The keyboard input port to read characters<br>1) Please provide comments for all instructions.<br>2) What is the memory mapped address for the console output and keyboard input?<br>3) Please identify the specific line of code that prints to console and reads the<br>keystroke.<br>PART A - Output: Printing character to the display<br>The memory addresses associated wi<br>the<br>console output I/O device are:<br>Oxffff0000 is the console (output) data port<br>Oxffff0004 is the console (output) status port where bit 7 is the ready flag (0: not<br>ready, 1: ready)<br>Printing a character is achieved by:<br>Checking the ready flag to see if device is ready for printing, i.e., check if the bit 7<br>of the output status port is set to 1<br>Storing the character to the output data port<br>! Prints

Extracted text: For the purpose of this lab, we are interested in using the ARC simulator to use: The console output port to display characters The keyboard input port to read characters 1) Please provide comments for all instructions. 2) What is the memory mapped address for the console output and keyboard input? 3) Please identify the specific line of code that prints to console and reads the keystroke. PART A - Output: Printing character to the display The memory addresses associated wi the console output I/O device are: Oxffff0000 is the console (output) data port Oxffff0004 is the console (output) status port where bit 7 is the ready flag (0: not ready, 1: ready) Printing a character is achieved by: Checking the ready flag to see if device is ready for printing, i.e., check if the bit 7 of the output status port is set to 1 Storing the character to the output data port ! Prints "Hello, world!\n" in the message area. .begin 1 BASE COUT .equ Ox3fffcO .equ Ox0 .equ Ox4 !Starting point of the memory mapped region !Oxffff0000 Console Data Port !Oxffff0004 Console Status Port COSTAT 2048 .org add %r0, %r0, %r2 %r0, %r0, %r4 sethi BASE, %r4 add Loop: Id [%r2 + String], %r3 !Load next char into r3 addcc %r3,%r0,%r3 End be ! stop if null Id andcc %r1, Ox80, %r1 be Wait: [%r4+COSTAT]), %r1 Wait %r3, [%r4+COUT] !Print to console %r2, 4, %r2 Loop st !increment String offset (r2) add ba End: halt !A non-standard instruction to stop the simulator 3000 .org ! The "Hellow, world!" string String: Ох48, Ох65, 0хбс, Ох6с, 0х6f Оx2с, Ох20, Ох77, Ох6f, Ох72 Ох6с, Ох64, Ох21, 0х0а, 0 .end
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here