Page 1 of 1

4. Imagine yourself as an assembler of LC-3 programming language. Your task is to compile or assemble the assembly code

Posted: Tue Jul 12, 2022 8:17 am
by answerhappygod
4 Imagine Yourself As An Assembler Of Lc 3 Programming Language Your Task Is To Compile Or Assemble The Assembly Code 1
4 Imagine Yourself As An Assembler Of Lc 3 Programming Language Your Task Is To Compile Or Assemble The Assembly Code 1 (49.75 KiB) Viewed 23 times
*Please provide the requested answer or not downthumb.
4. Imagine yourself as an assembler of LC-3 programming language. Your task is to compile or assemble the assembly code in Figure 3 and produce the symbol table for the code by completing Table 3 and convert the code into machine language by completing Table 4. Use Appendix 1 as reference. ; ; Program to multiply a number by the constant 6 ; ; The inner loop ; AGAIN ADD ADD BRP HALT ; ; .ORIG LD LD AND SIX : Answer: X3051 R1, SIX R2, NUMBER R3, R3, #0 NUMBER.BLKW 2 .END R3, R3, R2 R1, R1, #-1 FILL x0006 ; contain the product. AGAIN; the iteration. Assembly Code ; Clear R3. It will Figure 3 Symbol ; R1 keeps track of Table 3 Table 4 Address Machine Language [32 marks]