Make an Assembly type file from the instruction in the question: Note: the coding language for this file is Assembly and

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

Make an Assembly type file from the instruction in the question: Note: the coding language for this file is Assembly and

Post by answerhappygod »

Make an Assembly type file from the instruction in the
question:
Note: the coding language for this file is Assembly
and the board that used is the DE10-NANO.
Design the program to decompress the data sequence
saved in the data section (COMPRESSED) and store the decompressed
data to the corresponding memory location (DECOMPRESSED) as a
sequence. ‘0’ is used to denote the end of the data sequence in the
compressed representation. Check the memory location where the
decompressed data saved at (e.g.R3) and take a screenshot of the
decompressed results in the MEMORY page.
Make An Assembly Type File From The Instruction In The Question Note The Coding Language For This File Is Assembly And 1
Make An Assembly Type File From The Instruction In The Question Note The Coding Language For This File Is Assembly And 1 (45.19 KiB) Viewed 36 times
**Need to fill the "Programming" part.
Make An Assembly Type File From The Instruction In The Question Note The Coding Language For This File Is Assembly And 2
Make An Assembly Type File From The Instruction In The Question Note The Coding Language For This File Is Assembly And 2 (92.93 KiB) Viewed 36 times
^ logic representation of the process.
Make An Assembly Type File From The Instruction In The Question Note The Coding Language For This File Is Assembly And 3
Make An Assembly Type File From The Instruction In The Question Note The Coding Language For This File Is Assembly And 3 (100.38 KiB) Viewed 36 times
^ The results in the memory.
1 // Data Decompression 2 3 .text 4 .global start: LDR LDR NT /* executable code follows */ _start 5 6 R2, COMPRESSED 7 R3, DECOMPRESSED 8 9 10 11 Programming ...| 12 13 14 15 16 COMPRESSED: // (number, data), 0: end of sequence .word 3, 0xEECE, 2, 0xF0OD, 4, 0xCAFE, 1, 0xABCD, 0 DECOMPRESSED: 17 18 .space 4* (3+2+4+1)

COMPRESSED: // (number, data), 0: end of sequence word 3, 0xEECE, 2, 0xFOOD, 4, 0xCAFE, 1, 0xABCD, 0 DECOMPRESSED: LOOP1: .space 4* (3+2+4+1) LDR R4, [R2], #4 Load the number to R4, then update the MA by +4. MA: Memory Address Load the word to R5, then update the MA by +4. Init a counter = 0 Is R4 = counter? Yes No STOP LOOP2: Store value of R5 to the MA of DECOMPRESSED, And update the MA by +4 Add the counter by 1 Is R4 = counter? Yes No

In the Memory page Intel FPGA Monitor Program lab3_1: lab3_1.srec [Parsed] File Edit Actions Windows Help S Memory Goto address (hex or symbol name) Go +0x3 +0xe Cxc00000CCO +0x0 X5972090 ESSF30B0 ELAD5003 E4924004 B4925004 E5200100 EL540000 13000000 |2x 300000 lên CxD0000020 ZAOCCO04 E4965004 E:350001 E1540000 0x00000030 LAFFFFF3 EXFFFFFA EAFFEESE 00000003 |0x3000064 000CEECZ OCC00002 COODFOOD 00000004 Ox30000050 000CCAS COOMBED 00000000 ODDOFOOD 0x00000060 0000EECE OCCOERCE COODRECE 0x00000070 bon CAT 00000 noroc TOODOCAFE 00000060 0x00000080 OOCCAF 00COARED C000003C CoCD0000050 000CCOOD OCCOOODD COOOOOOO 000000A 0x000000A0 00000000 00000000 75BF5687 B07C7078 CxDDD00CEO AF2CFODS 7ASB5306 263F7EB3 DOELDEDD |0200000C0 7500FLE7 6AEF67CD ASEDBE78 63074350 0x00000CDO 9CC78A34 DFS88015 SDCD7188 E3D364E3 Disassembly Breakpoints Memory Watches Trace +0X4 Query Devices Refresh Hide Registers Reg TO rl 12 13 14 15 IO 19 r10 rll r12 80 ir cpar Value 0x00000038 |C&30000CCO OXFFFF14F0 0x00000064 0x00000060 C#00000000 CEODOOEECE 000000000 OFFET014 ORFFETUADO 0x00000005 |d20000000. ONFED02000 |OK000000CÓ OXFFFFB860 OXFFFF14AF 0x60000103
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply