1 / 3

演習問題 5. 1 解答 (その1)

演習問題 5. 1 解答 (その1). ラベル     ニモニック  オペランド            アドレス:機械語 DIV_RPT START LAD GR7,0 1000:1270 0000 LOOP1 CALL DVSN 1002:8000 1026 ST GR1,DIV,GR7 1004:1117 101C

bairn
Download Presentation

演習問題 5. 1 解答 (その1)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 演習問題 5.1 解答(その1) ラベル     ニモニック  オペランド            アドレス:機械語 DIV_RPT START LAD GR7,0 1000:1270 0000 LOOP1 CALL DVSN 1002:8000 1026 ST GR1,DIV,GR7 1004:1117 101C ST GR2,MOD,GR7 1006:1127 1021 LAD GR7,1,GR7 1008:1277 0001 CPA GR7,NUM 100A:4070 101B JZE QUIT1 100C:6300 1010 JUMP LOOP1 100E:6400 1002 QUIT1 RET 1010:8100 A DC 5,11,100,1000,20000 1011:0005 000B 0064 03E8 4E20 B DC 2,3,7,33,100 1016:0002 0003 0007 0021 0064 NUM DC 5 101B:0005 DIV DS 5 101C:0000 0000 0000 0000 0000 MOD DS 5 1021:0000 0000 0000 0000 0000 END

  2. 演習問題 5.1 解答(その2) ラベル     ニモニック  オペランド            アドレス:機械語 DVSN START LAD GR1,0 1026:1210 0000 LD GR2,A,GR7 1028:1027 1011 LD GR3,B,GR7 102A:1037 1016 LOOP2 CPA GR2,GR3 102C:4423 JMI QUIT2 102D:6100 1034 SUBA GR2,GR3 102F:2523 LAD GR1,1,GR1 1030:1211 0001 JUMP LOOP2 1032:6400 102C QUIT2 RET 1034:8100 END

  3. 演習問題 5.2 解答 ただし,テキストでは LAD 命令を便宜上 メモリ・レジスタ間命令 に分類.

More Related