Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using ARC 1) Please provide comments for all instructions. 2) What is the memory mapped address for the console output and keyboard input? 3) Please

Using ARC

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 with the console output I/O device are: - 0xffff0000 is the console (output) data port - 0xffff0004 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! " in the message area. .begin BASE .equ 0x3fffc0 COUT .equ 0x0 COSTAT .equ 0x4 .org 2048 add %r0, %r0, %r2 add %r0, %r0, %r4 sethi BASE, %r4 Loop: ld [%r2 + String], %r3 !Load next char into r3 addcc %r3,%r0,%r3 be End ! stop if null Wait: ldub [%r4+COSTAT], %r1 andcc %r1, 0x80, %r1 be Wait stb %r3, [%r4+COUT] !Print to console add %r2, 4, %r2 !increment String offset (r2) ba Loop End: halt !A non-standard instruction to stop the simulator .org 3000 ! The "Hellow, world!" string String: 0x48, 0x65, 0x6c, 0x6c, 0x6f 0x2c, 0x20, 0x77, 0x6f, 0x72 0x6c, 0x64, 0x21, 0x0a, 0 .end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago

Question

2. How do they influence my actions?

Answered: 1 week ago