Nama :muhammad jafar

Kelas :k2
Prodi :ioi
NIM:1120301037
1.not dengan menggunakan debug.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\bro>debug
-nnot.com
-a100
0ADF:0100 mov al,3f
0ADF:0102 mov bl,c0
0ADF:0104 not al,bl
0ADF:0106 int 20
0ADF:0108
-w
Writing 00000 bytes
-rip
IP 0100
:
-rcx
CX 0000
:108
-w
Writing 00108 bytes
-q
C:\DOCUME~1\bro>debug not.com
-r
AX=0000 BX=0000 CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0100 NV UP EI PL NZ NA PO NC
0B25:0100 B03F
MOV AL,3F
-t
AX=003F BX=0000 CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0102 NV UP EI PL NZ NA PO NC
0B25:0102 B3C0
MOV BL,C0
-t
AX=003F BX=00C0 CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0104 NV UP EI PL NZ NA PO NC
0B25:0104 F6D0
NOT AL
-t

AX=00C0 BX=00C0 CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0106 NV UP EI PL NZ NA PO NC
0B25:0106 CD20
INT 20
2.AND dengan menggunakan TASM
model small
.code
org 100h
proses:
MOV AL,3Fh
MOV BL,1Ah
AND AL,BL
int 20
end proses
prosesnya:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\bro>cd tasm
C:\Documents and Settings\bro\tasm>cd bin
C:\Documents and Settings\bro\tasm\BIN>tasm and.asm
Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International
Assembling file: and.asm
Error messages: None
Warning messages: None
Passes:
1
Remaining memory: 454k
C:\DOCUME~1\bro\tasm\BIN>tlink/t and.obj
Turbo Link Version 7.1.30.1. Copyright (c) 1987, 1996 Borland International
C:\DOCUME~1\BRO\TASM\BIN>debug and.com
-r
AX=0000 BX=0000 CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0100 NV UP EI PL NZ NA PO NC
0B25:0100 B03F
MOV AL,3F
-t
AX=003F BX=0000 CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0102 NV UP EI PL NZ NA PO NC

0B25:0102 B31A
-t

MOV

BL,1A

AX=003F BX=001A CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0104 NV UP EI PL NZ NA PO NC
0B25:0104 22C3
AND AL,BL
-t
AX=001A BX=001A CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0106 NV UP EI PL NZ NA PO NC
0B25:0106 CD14
INT 14
2. AND dengan menggunakan DEBUG.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\bro>debug
-nand.com
-a100
0ADF:0100 mov al,3f
0ADF:0102 mov bl,1a
0ADF:0104 and al,bl
0ADF:0106 int 20
0ADF:0108
-w
Writing 00000 bytes
-rip
IP 0100
:
-rcx
CX 0000
:108
-w
Writing 00108 bytes
-q
C:\DOCUME~1\bro>debug and.com
-r
AX=0000 BX=0000 CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0100 NV UP EI PL NZ NA PO NC
0B25:0100 B03F
MOV AL,3F
-t
AX=003F BX=0000 CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0102 NV UP EI PL NZ NA PO NC
0B25:0102 B31A
MOV BL,1A

-t
AX=003F BX=001A CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0104 NV UP EI PL NZ NA PO NC
0B25:0104 20D8
AND AL,BL
-t
AX=001A BX=001A CX=0108 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0106 NV UP EI PL NZ NA PO NC
0B25:0106 CD20
INT 20
3.OR dengan menggunakan DEBUG
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\bro>debug
-nor.com
-a100
0ADF:0100 mov al,3f
0ADF:0102 mov bl,1a
0ADF:0104 or al,bl
0ADF:0106 int 20
0ADF:0108
-w
Writing 00000 bytes
-rip
IP 0100
:
-rcx
CX 0000
:108
-w
Writing 00108 bytes
-q
C:\DOCUME~1\bro>debug
-r
AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0ADF ES=0ADF SS=0ADF CS=0ADF IP=0100 NV UP EI PL NZ NA PO NC
0ADF:0100 B03F
MOV AL,3F
-t
AX=003F BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0ADF ES=0ADF SS=0ADF CS=0ADF IP=0102 NV UP EI PL NZ NA PO NC
0ADF:0102 B31A
MOV BL,1A

-t
AX=003F BX=001A CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0ADF ES=0ADF SS=0ADF CS=0ADF IP=0104 NV UP EI PL NZ NA PO NC
0ADF:0104 08D8
OR
AL,BL
-t
AX=003F BX=001A CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=0ADF ES=0ADF SS=0ADF CS=0ADF IP=0106 NV UP EI PL NZ NA PE NC
0ADF:0106 CD20
INT 20
3. OR dengan menggunakan TASM
Model small
.code
Org 100h
Proses:
MOV AL,3Fh
MOV BL,1Ah
OR AL,BL
Int 20
End proses
C:\DOCUME~1\bro>cd tasm
C:\DOCUME~1\bro\tasm>cd bin
C:\DOCUME~1\bro\tasm\BIN>tasm or.asm
Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International
Assembling file: or.asm
Error messages: None
Warning messages: None
Passes:
1
Remaining memory: 454k
C:\DOCUME~1\bro\tasm\BIN>tlink/t or.obj
Turbo Link Version 7.1.30.1. Copyright (c) 1987, 1996 Borland International
C:\DOCUME~1\BRO\TASM\BIN>debug or.com
-r
AX=0000 BX=0000 CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0100 NV UP EI PL NZ NA PO NC
0B25:0100 B03F
MOV AL,3F
-t

AX=003F BX=0000 CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0102 NV UP EI PL NZ NA PO NC
0B25:0102 B31A
MOV BL,1A
-t
AX=003F BX=001A CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0104 NV UP EI PL NZ NA PO NC
0B25:0104 0AC3
OR
AL,BL
-t
AX=003F BX=001A CX=0008 DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=0B25 ES=0B25 SS=0B25 CS=0B25 IP=0106 NV UP EI PL NZ NA PE NC
0B25:0106 CD14
INT 14

Sign up to vote on this title
UsefulNot useful