subject

Use tool 'MARS' to Solve the problem:Download printf_extension. asm in a directory. Default run of this will have error. Copy your cs47_macro. asm in the same directory. Enhance procedure 'printf' to handle escape character '\'. Anything after escape character losses its special meaning if any. For example "\\%s" should print '%s' on terminal instead of refereeing to corresponding string and print the string. Assemble and execute printf_extension. asm. After the above enhancement, the program should run ok. This should create following sample outputMy string is 'test printf' and integer is 16My name is John AdamsI am 26 year oldI love to eat pizzaI will graduate in 2015My name is %sI am %d year oldI love to eat %sI will graduate in %dNotes:1. If you run initial program without any modification, there will and exception error. Once you handle escape character this error should be gone.2. Make sure to to turn on 'Initialize Program Counter to global main if define' in the MARS editor's 'setting' pull down menu.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 02:30
How to apply the fly in effect to objects on a slide
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
What does the https: // mean when you type in a website
Answers: 1
question
Computers and Technology, 24.06.2019 21:50
Maddie is traveling to india and would like to document her trip for friends and family to access online. what tool would be best? app blog listserver web page
Answers: 1
question
Computers and Technology, 25.06.2019 04:10
While creating a web page, what does each of the following html tags define? 1. 2. 3. 4. a. defines a new paragraph b. defines a term c. defines a single line break d. defines a heading
Answers: 1
You know the right answer?
Use tool 'MARS' to Solve the problem:Download printf_extension. asm in a directory. Default run of t...
Questions