Diktat D3 : Instruksi Mesin - Institut Manajemen Telkom
Diktat D3 : Instruksi Mesin - Institut Manajemen Telkom
Diktat D3 : Instruksi Mesin - Institut Manajemen Telkom
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Diktat</strong> Kuliah Mikro @ <strong>Institut</strong> <strong>Manajemen</strong> <strong>Telkom</strong> (http://www.imtelkom.ac.id)<br />
AX=1234 BX=5678 CX=0000 DX=0000 SP=FFEC BP=0000 SI=0000 DI=0000<br />
DS=0EA0 ES=0EA0 SS=0EA0 CS=0EA0 IP=0107 NV UP EI PL NZ NA PO NC<br />
0EA0:0107 53 PUSH BX<br />
-d ffe0 <br />
0EA0:FFE0 00 00 00 00 00 00 00 00-00 00 00 00 34 12 00 00 AX ada di stack<br />
-t<br />
AX=1234 BX=5678 CX=0000 DX=0000 SP=FFEA BP=0000 SI=0000 DI=0000<br />
DS=0EA0 ES=0EA0 SS=0EA0 CS=0EA0 IP=0108 NV UP EI PL NZ NA PO NC<br />
0EA0:0108 58 POP AX<br />
-d ffe0 <br />
0EA0:FFE0 00 00 00 00 00 00 00 00-00 00 78 56 34 12 00 00 BX ada di stack<br />
-t<br />
AX=5678 BX=5678 CX=0000 DX=0000 SP=FFEC BP=0000 SI=0000 DI=0000<br />
DS=0EA0 ES=0EA0 SS=0EA0 CS=0EA0 IP=0109 NV UP EI PL NZ NA PO NC<br />
0EA0:0109 5B POP BX<br />
-t<br />
AX=5678 BX=1234 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000<br />
DS=0EA0 ES=0EA0 SS=0EA0 CS=0EA0 IP=010A NV UP EI PL NZ NA PO NC<br />
Contoh Penggunaan <strong>Instruksi</strong> Control (JMP dan JZ)<br />
-a<br />
0F6C:0100 MOV AX,ABCD<br />
0F6C:0103 MOV BX,DCBA<br />
0F6C:0106 XOR AL,AL<br />
0F6C:0108 JMP 010C<br />
0F6C:010A MOV AL,BH<br />
0F6C:010C JZ 010E<br />
0F6C:010E<br />
-t trace MOV AX,ABCD<br />
AX=ABCD BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000<br />
DS=0F6C ES=0F6C SS=0F6C CS=0F6C IP=0103 NV UP EI PL NZ NA PO NC<br />
-t trace MOV BX,DCBA<br />
AX=ABCD BX=DCBA CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000<br />
DS=0F6C ES=0F6C SS=0F6C CS=0F6C IP=0106 NV UP EI PL NZ NA PO NC<br />
-t trace XOR AL,AL<br />
AX=AB00 BX=DCBA CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000<br />
DS=0F6C ES=0F6C SS=0F6C CS=0F6C IP=0108 NV UP EI PL ZR NA PE NC<br />
-t trace JMP 010C<br />
AX=AB00 BX=DCBA CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000<br />
DS=0F6C ES=0F6C SS=0F6C CS=0F6C IP=010C NV UP EI PL ZR NA PE NC<br />
-t trace JZ 010E<br />
AX=AB00 BX=DCBA CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000<br />
DS=0F6C ES=0F6C SS=0F6C CS=0F6C IP=010E NV UP EI PL ZR NA PE NC