讲解:CCPS310、Python、c/c++,Java、ARC ASSEMBLYR|Matlab

CCPS310 – COMPUTER ORGANIZATION IILAB 1ARC, ARC ASSEMBLY, ARC SIMULATORSubmission instruction: Due Feb 12th @23:00hrStudents may work in groups of 2, and are expected to do the lab together.Submit solutions in one text file on Brightspace.Evaluation :Correct completion of the following four programs.Note: CS Labs: Arc Simulator program is located in the shared drive with path‘Program Files\ArcTools\ArcTools’. OR Install on your computer from zip file onbrightspace.!n: The ArcTool requires an added empty line at the bottom of the code toassemblePART 1:1. Please add comment for each line.a. Explain what the program intends to do.b. Assemble the code by hand.2. Run the program through the simulator3. What is the content of %r4 after this program is executed?! Program 1! Hint: op3 for subcc is 010100.begin.org 2048dstart .equ 4000ld [a], %r1ld [b], %r2ld [c], %r3addcc %r2, %r3, %r0addcc %r1, %r0, %r4subcc %r2, %r4, %r2st %r0, [a]st %r2, [y]jmpl %r15 + 4, %r0.org dstarta: 15b: 54c: -29y: 0.endPART 2:1. Please add comment for each line.a. Explain what the program intends to do.b. Assemble the code by hand.2. Run the program through the simulator3. What is the content of %r3 after this program i代写CCPS310留学生作业、Python程序语言作业代做、代写c/c++,Java实验作业、代做ARC ASSEMBLs executed?! Program 2.begin.org 2048m_start: ld [x], %r1ld [y], %r2subcc %r1, %r2, %r0bne elseandcc %r1, %r2, %r3ba doneelse: orcc %r1, %r2, %r3done: st %r3, [a]jmpl %r15+4, %r0x: 30y: 48a: 0.endPART 3:1. Please add comment for each line.a. Explain what the program intends to do.b. Assemble the code by hand.2. Run the program through the simulator3. What is the content of %r1 after this program is executed?! Program 3.begin .org 2048main: ld [x], %r2top: subcc %r1, 4, %r0be donesrl %r2, 1, %r2addcc %r1, 1, %r1ba topdone: st %r3, [y]jmpl %r15+4, %r0.org 3000x: 800y: 0.endPART 4:1. Please add comment for each line.a. Explain what the program intends to do.b. Assemble the code by hand.2. Run the program through the simulator3. What is the content of %r4 after this program is executed?! Program 4.begin.org 2048main: ld [a], %r1ld [b], %r2ld [c], %r3top: subcc %r4, 3, %r0be donesubcc %r5, %r6, %r0bneg elseorcc %r1, %r2, %r1addcc %r6, 1, %r6ba bottomelse: andcc %r1, %r3, %r1addcc %r5, 1, %r5bottom: addcc %r4, 1, %r4ba topdone: st %r3, [y]jmpl %r15+4, %r0.org 3000a: 0xa0b: 0x33c: 0x52y: 2.end转自:http://ass.3daixie.com/2019021715216819.html

你可能感兴趣的:(讲解:CCPS310、Python、c/c++,Java、ARC ASSEMBLYR|Matlab)