Professional Documents
Culture Documents
.model small
.code
org 100h
isi:
mov ax,12h
mov bx,1fh
and ax,bx
int 20h
end isi
E:\ASEMBLER>tlink/t and.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
E:\ASEMBLER>debug and.com
-t
AX=0012 BX=0000 CX=000A DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=1422 ES=1422 SS=1422 CS=1422 IP=0103 NV UP EI PL NZ NA PO NC
1422:0103 BB1F00
MOV
BX,001F
-t
AX=0012 BX=001F CX=000A DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=1422 ES=1422 SS=1422 CS=1422 IP=0106 NV UP EI PL NZ NA PO NC
1422:0106 23C3
AND
AX,BX
-t
AX=0012 BX=001F CX=000A DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
INT
20
-q
E:\ASEMBLER>
Koding pembagian
.model small
.code
org 100h
isi:
mov ax,10h
mov bx,2h
div bx
int 20h
end isi
Isi register
E:\ASEMBLER>tlink/t bagi.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
E:\ASEMBLER>debug bagi.com
-t
1422:0103 BB0200
MOV
BX,0002
-t
DIV
BX
-t
isi:
mov ax,20h
mov bx,4h
mul bx
int 20h
end isi
INT
20
Isi Register
E:\ASEMBLER>tlink/t kali.obj
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
MOV
BX,0004
-t
MUL
BX
-t
E:\ASEMBLER>
INT
20
Koding Kurang
.model small
.code
org 100h
proses:
mov ax,2000h
mov bx,2000h
sub ax,bx
sub ax,ax
int 20h
end proses
Isi Register
E:\ASEMBLER>debug kurang.com
-t
MOV
BX,2000
-t
SUB
AX,BX
-t
SUB
AX,AX
-t
E:\ASEMBLER>
Koding Not
.model small
.code
org 100h
isi:
mov ax,14h
mov bx,1fh
INT
20
not ax
not bx
int 20h
end isi
Isi Register
AX=0012 BX=0000 CX=000C DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=143F ES=143F SS=143F CS=143F IP=0103 NV UP EI PL NZ NA PO NC
143F:0103 BB1F00
MOV
BX,001F
-t
NOT
AX
-t
NOT
BX
-t
INT
20
NOP
-q
D:\ASEMBLER>
Koding or
AX=AB12 BX=001F CX=000E DX=0000 SP=FFFE BP=0000 SI=0000 DI=0000
DS=143F ES=143F SS=143F CS=143F IP=0106 NV UP EI PL NZ NA PO NC
143F:0106 B73A
MOV
BH,3A
-t
OR
AL,BL
-t
OR
AH,BH
-t
INT
20
-t
NOP
-q
D:\ASEMBLER>
Koding shl
.model small
.code
org 100h
isi:
mov al,5Eh
mov cl,2
shl al,cl
int 20h
end isi
Isi Register
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
E:\ASEMBLER>debug shl.com
-t
MOV
CL,02
-t
SHL
AL,CL
-t
INT
20
-t
E:\ASEMBLER>
NOP
Koding shr
.model small
.code
org 100h
isi:
mov al,6fh
mov cl,2
shr al,cl
int 20h
end isi
Isi register
Turbo Link Version 3.0 Copyright (c) 1987, 1990 Borland International
E:\ASEMBLER>debug shr.com
-t
MOV
CL,02
-t
143F:0104 D2E8
SHR
AL,CL
-t
INT
20
-t
E:\ASEMBLER>
Koding tambah
.model small
.code
org 100h
proses:
mov ah,10h
mov al,8f
add ah,al
int 21h
NOP
end proses
isi Register
operable program or batch file.
D:\ASEMBLER>debug tambah.com
-t
MOV
AL,08
-t
ADD
AH,AL
-t
INT
21
-t
00A7:107C 90
-q
D:\ASEMBLER>
NOP