Back to category: Technology

Limited version - please login or register to view the entire paper.

comp arch

19.4.1 Write working programs in machine and / or assembly code

Using the ASM TUTOR assembler environment write 3 working programs to demonstrate that you can:

1. Demonstrate the MOVE, ADD, MULS and RTS op_codes

2. Use appropriate commands to demonstrate Direct and Indirect
addressing

3. Write your name to the memory mapped screen device











The instructions above mean that the Move functions shown are simply moving or copying the value from one location to another. In this case it is moving the value ‘15’ into Register (R) O, and also moving the value ‘21’ into R1.




The Add function simply means that you are adding values together. In this case I have asked the operation to add the R0 value to the R1 value. That means that as R0 is 15 and it is being added to the R1 value, which is 21, that value will now change to 36, which is your correct answer.





A step-by-step guide of the functions of the Mu...

Posted by: Angelia Holliday

Limited version - please login or register to view the entire paper.