Professional Documents
Culture Documents
Comandpromt
Comandpromt
7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Devi>cd..
C:\Users>cd..
C:\>debug
-R
AX=0000 BX=0000 CX=0000 DX=0000 SP=FFEE BP=0000 SI=0000 DI=0000
DS=13A0 ES=13A0 SS=13A0 CS=13A0 IP=0100 NV UP EI PL NZ NA PO NC
13A0:0100 0000
ADD
[BX+SI],AL
DS:0000=CD
-A100
13A0:0100
-A
13A0:0100 MOV AX,1
13A0:0103 MOV BX,2
13A0:0106 ADD AX,BX
13A0:0108 ADD AX,CX
13A0:010A INT 3
13A0:010B
-T
MOV
BX,0002
-U 100 10A
13A0:0100 0000
ADD
[BX+SI],AL
13A0:0102 0000
ADD
[BX+SI],AL
13A0:0104 0000
ADD
[BX+SI],AL
13A0:0106 0000
ADD
[BX+SI],AL
13A0:0108 0000
ADD
[BX+SI],AL
13A0:010A 0000
ADD
[BX+SI],AL
13A0:0100 0000
ADD
[BX+SI],AL
13A0:0102 0000
ADD
[BX+SI],AL
13A0:0104 0000
ADD
[BX+SI],AL
13A0:0106 0000
ADD
[BX+SI],AL
13A0:0108 0000
ADD
[BX+SI],AL
13A0:010A 0000
ADD
[BX+SI],AL
-U 100 10A
-G = 100 10B
INT
INT
-G =100
INT
-T
PUSH
BP
-T=100 3
PUSH
DS
PUSH
ES
0E04:010D 0E
PUSH
CS
-D0,1F
13A0:0000 CD 20 FF 9F 00 9A EE FE-1D F0 4F 03 04 0E 8A 03 . ........O.....
13A0:0010 04 0E 17 03 04 0E 1A 04-01 01 01 00 02 FF FF FF ................
-D01A1:100,12A
01A1:0100 FF 2E 54 10 90 90 E8 B2-00 2E FF 2E 58 10 90 90 ..T.........X...
01A1:0110 E8 A8 00 2E FF 2E 5C 10-E9 3B 04 00 00 00 00 00 ......\..;......
01A1:0120 00 00 00 00 00 00 00 2E-8F 06 BB
...........
-D
01A1:0120
10 2E 8F 06 BD
.....
-E0
13A0:0000 CD.20 20.00 FF.
...SP.....O
-D0, 1A
13A0:0000 20 00 FF 9F 00 9A EE FE-1D F0 4F 03 04 0E 8A 03
13A0:0010 04 0E 17 03 04 0E 1A 04-01 01 01
.........O.....
...........
-E0
13A0:0000 20.FF
-D0, 1A
13A0:0000 FF 00 FF 9F 00 9A EE FE-1D F0 4F 03 04 0E 8A 03 ..........O.....
13A0:0010 04 0E 17 03 04 0E 1A 04-01 01 01
...........
-E0
13A0:0000 FF.AA
-D0, 1A
13A0:0000 AA 00 FF 9F 00 9A EE FE-1D F0 4F 03 04 0E 8A 03 ..........O.....
13A0:0010 04 0E 17 03 04 0E 1A 04-01 01 01
-A100
13A0:0100 MOV AX,50
13A0:0103 MOV BX,25
13A0:0106 MOV SI,AX
13A0:0108 MOV AX,[50]
13A0:010B MOV AX,[SI]
13A0:010D MOV AX,[SI+5]
...........
MOV
BX,0025
-T
MOV
SI,AX
-T
MOV
AX,[0050]
DS:0050=21CD
-T
13A0:010B 8B04
MOV
AX,[SI]
DS:0050=21CD
-T
MOV
AX,[SI+05]
DS:0055=0000
-T
MOV
AX,[BP+00]
SS:0000=20CD
-T
MOV
AX,[BX+DI]
DS:0025=FFFF
-T
MOV
AX,[BX+DI+04]
DS:0029=FFFF
-T
INT
20
-T
NOP
PRAKTIKUM 2
C:\Users\Devi>cd..
C:\Users>cd..
C:\>d:
D:\>tasm tambah.asm
Turbo Assembler Version 2.0 Copyright (c) 1988, 1990 Borland International
D:\>tlink tambah.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
Warning: No stack
D:\>tlink/t tambah.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
D:\>debug tambah.exe
-t
MOV
AL,04
-t
ADD
AH,AL
-t
-t
MOV
AX,1234
-t
MOV
BX,F221
ADD
AX,BX
-t
MOV
AX,1234
-t
MOV
BX,9ABC
-t
MOV
CX,5678
-t
MOV
DX,DEF0
ADD
CX,DX
-t
ADC
AX,BX
-t
INC
AL
-t
INT
20
-t
NOP
Bab 2 b
D:\>tasm cba0.asm
Turbo Assembler Version 2.0 Copyright (c) 1988, 1990 Borland International
D:\>tlink cba0.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
Unable to open file cba0.obj
D:\>tlink/t cba0.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
Unable to open file cba0.obj
D:\>debug cba0.obj
File not found
-quit
D:\>debug cba0.exe
File not found
Bab 2 c
D:\>tasm hello.asm
Turbo Assembler Version 2.0 Copyright (c) 1988, 1990 Borland International
D:\>tlink hello.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
D:\>debug hello.exe
-t
MOV
DS,AX
-t
MOV
AH,09
-t
MOV
DX,0000
-t
INT
21
-t
NOP
-t
NOP
D:\>hello
Halo dunia!
Bab 3
3.1. add
-add
13AF:00DD mov ah,15
13AF:00DF mov al,4
13AF:00E1 add ah,al
13AF:00E3
-t
3.2. adc
ADD
[BX+SI],AL
DS:0000=CD
C:\>debug
-adc
13AF:00DC mov ax,1234
13AF:00DF mov bx,9abc
13AF:00E2 mov cx,5678
13AF:00E5 mov dx,0def
13AF:00E8 add cx,dx
13AF:00EA adc ax,bx
13AF:00EC
-t
C:\>debug
-a100
13AF:0100 mov ax,15
13AF:0103 mov bx,12
13AF:0106 sub ax,bx
13AF:0108 sub ax,ax
13AF:010A
-t
ADD
[BX+SI],AL
DS:0000=CD
MOV
BX,0012
-t
SUB
AX,BX
-t
SUB
AX,AX
ADD
[BX+SI],AL
DS:0012=17
-t
ADD
[BX+SI],AL
DS:0012=17
-t
13AF:010E 0000
ADD
[BX+SI],AL
DS:0012=17
ADD
[BX+SI],AL
DS:0012=17
-t
ADD
[BX+SI],AL
DS:0012=17
-t
ADD
[BX+SI],AL
DS:0012=17
ADD
[BX+SI],AL
DS:0012=17
-t
ADD
[BX+SI],AL
DS:0012=17
-t
ADD
[BX+SI],AL
DS:0012=17
C:\>debug
-a100
13AF:0100 mov ax,15
13AF:0103 mov bx,12
13AF:0106 sbb bx,ax
13AF:0108
-t
MOV
BX,0012
-t
SBB
BX,AX
-t
SUB
AX,AX
ADD
[BX+SI],AL
DS:FFFD=00
-t
ADD
[BX+SI],AL
DS:FFFD=00
-a100
13AF:0100 mov ax,5
13AF:0103 mov bx,2
13AF:0106 mul bx
13AF:0108
-t
MOV
BX,0002
-t
MUL
BX
-t
SUB
AX,AX
-t
ADD
[BX+SI],AL
DS:0002=FF
imul
C:\>debug
-a100
13AF:0100 mov ax,5
13AF:0103 mov bx,2
13AF:0106 imul bx
13AF:0108
-t
MOV
BX,0002
IMUL BX
-t
SUB
AX,AX
-t
ADD
[BX+SI],AL
DS:0002=FF
DIV
-a100
13AF:0100 mov ax,15
13AF:0103 mov bx,5
13AF:0106 div bx
13AF:0108
-t
MOV
BX,0005
-t
DIV
BX
-t
SUB
AX,AX
-t
3. operasi logika
-a100
13AF:0100 mov al,3f
13AF:0102 mov bl,1a
13AF:0104 and al,bl
13AF:0106
-t
ADD
[BX+SI],AL
DS:0005=9A
MOV
BL,1A
-t
AND
AL,BL
-t
DIV
BX
-t
SUB
AX,AX
-t
3.2
ADD
[BX+SI],AL
DS:001A=01
-a100
13AF:0100 mov al,3f
13AF:0102 mov ah,f3
13AF:0104 mov bl,99
13AF:0106 mov bh,71
13AF:0108 not al
13AF:010A not ah
13AF:010C not bl
13AF:010E not bh
13AF:0110
-t
MOV
AH,F3
-t
MOV
BL,99
-t
MOV
BH,71
-t
NOT
AL
-t
NOT
AH
-t
NOT
BL
NOT
BH
-t
ADD
[BX+SI],AL
DS:8E66=00
-a100
13AF:0100 mov al,12
13AF:0102 mov bl,43
13AF:0104 mov ah,be
13AF:0106 mov bh,ab
13AF:0108 xor al,bl
13AF:010A xor ah,bh
13AF:010C
-t
MOV
BL,43
-t
MOV
AH,BE
-t
MOV
BH,AB
XOR
AL,BL
-t
XOR
AH,BH
-t
NOT
BL
-t
NOT
BH
-t
ADD
[BX+SI],AL
DS:54BC=00
-a100
13AF:0100 mov ax,3f
13AF:0103 mov cl,3
13AF:0105 shl ax,cl
13AF:0107
-t
MOV
CL,03
-t
SHL
AX,CL
-t
STOSW
-t
13AF:0108 30D8
XOR
AL,BL
-t
XOR
AH,BH
-t
NOT
BL
-t
NOT
BH
-a100
13AF:0100 mov ax,3f
13AF:0103 mov cl,3
13AF:0105 shr ax,cl
13AF:0107
-t
MOV
CL,03
-t
SHR
AX,CL
-t
STOSW
-t
XOR
AL,BL
-t
XOR
AH,BH
-t
NOT
BL
-t
NOT
BH