Copyright © XXXXXXXXXXJonathan Muckell, Ph.D. All rights reserved.
Document cannot be distributed without written consent by the author.
Homework #4: Mini-Compiler (Part #2 of 2)
ECE233 – The HW/SW Interface
Prof. Muckell
Expand your code from Part #1 to support the additional functionality below. Follow all the same code organization
equirements outlined in the first part of the assignment.
For part #2, your code should support add and subtract operations. For example, the input files below should be
supported. Note,
TEST FILE #4 (test4.mucks)
MUCKS Code
Generated ARM Output (Example)
MOV R3, #56
MOV R4, #14
MOV R5, R3, R4
RESULT: At the end of the execution x=56, y=14, z=70
After executing your output ARM code in the visUAL ARM
emulator, there should be two registers with those values
TEST FILE #5 (test3.mucks)
MUCKS Code
Generated ARM Output (Example)
MOV R3, #1
ADD R4, R3, #2
MOV R3, #5
SUB R5, R3, R4
ADD R5, R5, #10
RESULT: At the end of the execution x=5, y=3, z=12
After executing your output ARM code in the visUAL ARM
emulator, there should be two registers with those values