Question: Write a working ARCTool assembly code that emulates the logical programming construct below: Use the file ARCTool/examples/IOExamples/printHelloWorld.asm as an example. Note the use of the

Write a working ARCTool assembly code that emulates the logical programming construct below: Use the file ARCTool/examples/IOExamples/printHelloWorld.asm as an example. Note the use of the memory mapped I/O and the flow control mechanisms. LENGTH = 0x24 !Number of characters in the character string in hex WHILE ( LENGTH > 0 ) DO PRINT $Message > console !Print each character to the console LENGTH=LENGTH-1 !Decrement the counter DONE

Use the following Message .org 3000 ! The "Message" charactor string Message: 0x57, 0x65, 0x20, 0x41, 0x70

0x6f, 0x6c, 0x6f, 0x67, 0x69

0x73, 0x65, 0x20, 0x66, 0x6f

0x72, 0x20, 0x74, 0x68, 0x65

0x20, 0x49, 0x6e, 0x63, 0x6f

0x6e, 0x76, 0x65, 0x6e, 0x69

0x65, 0x6e, 0x63, 0x65, 0x0a

a. Write the message printed in the ARCTool console window:

b. Print your code (with comments) :

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!