- 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 69 times
4. Imagine yourself as an assembler of LC-3 programming language. Your task is to compile or assemble the assembly code
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
4. Imagine yourself as an assembler of LC-3 programming language. Your task is to compile or assemble the assembly code
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]