t e 4. t t t t t ܝܢ H ( tttttt. 1 ↑ Imagine yourself as an assembler of LC-3 programming language. Your task is to compi

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

t e 4. t t t t t ܝܢ H ( tttttt. 1 ↑ Imagine yourself as an assembler of LC-3 programming language. Your task is to compi

Post by answerhappygod »

 1
1 (52.62 KiB) Viewed 56 times
t e 4. t t t t t ܝܢ H ( tttttt. 1 ↑ 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.< (Bayangkan anda sebagai penghimpun bahasa pengaturcaraan LC-3. Tugas anda adalah mengkompil atau menghimpun kod himpunan di dalam Rajah 3 dan menghasilkan jadual simbol untuk kod tersebut dengan melengkapkan Jadual 3 dan seterusnya menterjemah baris kod ke dalam bahasa mesin dengan melengkapkan Jadual 4. Gunakan Appendix 1 sebagai rujukan.)< e ; Program to multiply a number by the constant 6 ORIG x3051 LD LD AND ; The inner loop AGAIN ADD ADD BRP HALT+ SIX .END RI, SIX R2, NUMBER R3, R3, #0 ; NUMBER.BLKW 24 .FILL x0006 Answer / Jawapan : R3, R3, R2+ R1, R1, #-1 ; Clear R3. It will contain the product. ; R1 keeps track of AGAIN; the iteration. Figure 3 / Rajah 3 [32 marks]
Answer / Jawapan : ← ttttttttttt t t t t t Table 3 / Jadual 3+ Symbol Assembly Code Address 7 t t Table 4/Jadual 4< Machine Language
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply