ALL > Computer and Education > courses > university courses > undergraduate courses > An Overview of Computer Science > zstu-(2020-2021-2) > homework noticement >
homework-2 Version 0
👤 Author: by writer 2021-03-15 23:39:03
Using the simple machine language in textbook Appendix C, design your own program (for example, add ,subtract , etc ) , and store these instructions in memory. And giving the inputs , and give out the results.

Please login to reply. Login

1281489327qqcom • 2021-03-18 16:39:00
634E would cause the values in registers4 and E to be added as floating-point values and th result to be placed in register 3. PostVer 0

Please login to reply. Login

3108655967qqcom • 2021-03-19 17:29:13
8045 would cause the result of ANDing the contents of registers 4 and 5 to be placed in register 0. PostVer 0

Please login to reply. Login

1525693772qqcom • 2021-03-19 19:05:22
21AA    //assign AA to register 1--------

224C    //assign 4C to register 2--------

7312    //put the result of ORing the contents of registers 1 and 2 into register 3--------

8412    //put the result of ANDing the contents of registers 1 and 2 into register 4--------

5534    //put the result of adding the contents of register 3 and 4 into register 5--------

35A1    //put the content of register 5 into memory cell A1--------

16A1    //put the content of memory cell A1 into register 6--------

A602    //make the content of register 6 rotate 2 bits to the right--------

C000    //stop program executing--------

The results of each registers:--------

register 1:AA--------

register 2:4C--------

register 3:EE--------

register 4:08--------

register 5:F6--------

register 6:3D-------- PostVer 0

Please login to reply. Login

2542886026qqcom • 2021-03-19 20:00:29
93F6 would cause the result of EXCLUSIVE ORing the contents of registers F and 6 to be placed in register 53.

5659 would cause the binary values in registers 5 and 9 to be added and the sum placed in register 6. PostVer 0

Please login to reply. Login

3218825920qqcom • 2021-03-19 20:12:54
36C2 would cause the contents of register 6 to be placed and the address is C2. PostVer 0

Please login to reply. Login

wx287_oz26ftyeszxunhjb6ehly8qq5vdi • 2021-03-19 20:33:44
input-166c-176d-5167-316e-output PostVer 0

Please login to reply. Login

3058218005qqcom • 2021-03-19 22:01:12
8045 4 5 0 PostVer 0

Please login to reply. Login

wx287_oz26ftx_gczjz0jpscvm1-d3flry • 2021-03-19 23:52:50
8136 would cause the result of ANDing the contents of registers 3 and 6 to be placed in register 1. PostVer 0

Please login to reply. Login

387940240qqcom • 2021-03-20 00:34:31
0x12A7 (LOAD register 0x2 with the contents of memory cell 0xA7)

0x2302(LOAD register 0x3 with the value 0x02)

0x2401(LOAD register 0x4 with the value 0x01)

0x6534(ADD values in registers 0x3 and 0x4, placing the result in register 0x5)

0x35A7(STORE contents of register 0x5 in memory cell 0xA7)

0xC000(HALT)

So it realize the addition of 0x01 and 0x02, giving the result of 0x03. PostVer 0

Please login to reply. Login

2394773179qqcom • 2021-03-20 08:06:50
356E means store the contents of register 5 in the memory cell at address 6E PostVer 0

Please login to reply. Login

1498139310qqcom • 2021-03-20 08:09:50
<ul>
<li>8068 would cause the result of ANDing the contents of registers 6 and 8 to be placed in register 0.</li>
</ul> PostVer 0

Please login to reply. Login

2955836006qqcom • 2021-03-20 08:26:10
5245 would cause the binar value in registers 4 and 5 to be added and the sum placed in register 2 PostVer 0

Please login to reply. Login

1017364560qqcom • 2021-03-20 08:55:04
15A3 would cause the contents of the memory cell located at address A3 to be placed in register 5 PostVer 0

Please login to reply. Login

1917871807qqcom • 2021-03-20 09:01:29
<blockquote>operand:5C23

input:2 5

output in register C:7</blockquote> PostVer 0

Please login to reply. Login

nintendolinkfoxmailcom • 2021-03-20 16:23:15
21B9(LOAD the register 1 with bit pattern B9)---&gt;22A9(LOAD the register 2 with bit pattern A9)---&gt;5312(ADD the bit patterns in registers 1 and 2 and leave the result in register 3)---&gt;4034(MOVE the bit pattern found in register 3 to register 4)---&gt;C000(HALT execution)<strong>Result:register1[B9]register2[A9]register3[162]register4[162]</strong> PostVer 0

Please login to reply. Login

1634605411qqcom • 2021-03-20 19:43:57
8413 put the result of ANDing the content of registers 1 and 3 into register 4 PostVer 0

Please login to reply. Login

981193371qqcom • 2021-03-21 08:38:01
693C would cause the values in registers 3 and C to be added as floating-point values and the result to be placed in register 9. PostVer 0

Please login to reply. Login

1772435220qqcom • 2021-03-21 15:59:47
98F2 would cause the result of EXCLUSIVE ORing the contents of registers F and 2 to be placed in register 8. PostVer 0

Please login to reply. Login

zboa6023gmailcom • 2021-03-22 13:53:17
<em>40A4 would cause the contents of register A to be copied into register 4.</em> PostVer 0

Please login to reply. Login

3301794392qqcom • 2021-03-22 22:41:52
1999 would cause the contents of the memory cell located at address 99 to be placed in the register 9.

3999 would cause the contents of register 9 to be placed in the memory cell whose address is 99.

4999 would cause the contents of register 99 to be copied into register 9.

9991 would cause the result of EXCLUSIVE ORing the contents of register 9 and 1 to be placed in register 9. PostVer 0

Please login to reply. Login

wx287_oz26ftxkg9s80omiw6ifl9sdtr-s • 2021-03-25 20:30:32
1211  1310  5423 PostVer 0

Please login to reply. Login

wx287_oz26ft_ppvmz0yhrwncdglpjyuum • 2021-03-27 16:22:56
34B2 would cause the contents of register 4 to be placed in the memory cell whose address is B2. PostVer 0

Please login to reply. Login

819354461qqcom • 2021-03-27 17:04:29
18B4 would cause the contents of the memory cell located at address B4 to be placed in regester 8. PostVer 0

Please login to reply. Login

2287245796qqcom • 2021-03-30 08:27:07
8072 would cause the result of ANDing the contents of registers 7 and 2 to be placed in register 0. PostVer 0

Please login to reply. Login

wx287_oz26ft4i1taklosxq83xveqlblcc • 2021-03-30 08:28:35
<ul>
<li>8023 would cause the result of ANDing the contents of registers 2 and 3 to be placed in register 0.</li>
</ul> PostVer 0

Please login to reply. Login

2653815589qqcom • 2021-03-30 08:42:24
14A3 would cause the contents of the memory cell located at address A3 to be placed in register 4 PostVer 0

Please login to reply. Login

2653815589qqcom • 2021-03-30 08:45:17
14A3 would cause the contents of the memory cell located at address A3 to be placed in register 4. PostVer 0

Please login to reply. Login

rababboug69gmailcom • 2021-04-05 06:06:00
84B1 would cause the contents of the memory call located at the address B1 to be placed in register 4. PostVer 0

Please login to reply. Login

1115727260qqcom • 2021-04-06 10:01:18
166C load register 6 with the bit pattern found in the memory cell at address 6C PostVer 0

Please login to reply. Login

1719538377qqcom • 2021-04-06 22:25:52
38D5 would cause the contents of register 8 to be placed and the address is D5. PostVer 0

Please login to reply. Login

2848519344qqcom • 2021-04-19 22:58:19
15A4 would cause the contents of the memory cell located at address A4 to be placed in register 5 PostVer 0

Please login to reply. Login

Reversion History

Loading...
No reversions found.