thank to Adiguna
now I know how to print word
---------------------------------------------------
TData : JMP Prosess ; jump to Process
; first save the word in a label (example : Tes)
Tes DB 'D_FREAK'
Prosess:
LEA BX,Tes ; To get the first address from Tes
MOV CX,7 ; How many character you want to print
Looping:
MOV DL,[BX] ; move BX to DL
MOV AH,02h ; The service to print character
INT 21h ; Do the service!!
ADD BX,1 ; BX:=BX+1 or BX move to the next character's address
LOOP Looping ; Back to Looping
INT 20h
END TData
---------------------------------------------------
and about add I stil don't know much
they say just write
debug (yourfile).com
after compilation
then press
r,enter -> to see value all registers
t,enter -> to run the instruction one by one
q,enter -> to quit from debug
This is my first blog, I create this blog because I want to share what is in my mind. Sorry if I am not very good in english Thanks for coming to my blog
Search this site
Showing posts with label TASM. Show all posts
Showing posts with label TASM. Show all posts
Monday, April 4, 2011
Sunday, April 3, 2011
TASM
I just studying this programming language
after around 3 hour I spent
all I can do is only to understand
--------------------------------------------------------------
how to compile
--------------------------------------------------------------
open your CMD
cd to your TASM folder
write: (if my file name is d_frEak.asm)
TASM d_frEak.asm
then if success there is no error message
tlink/t d_frEak
then
d_frEak
--------------------------------------------------------------
how to print one character only
--------------------------------------------------------------
MOV AH,02h ; The service to print character
MOV DL,'U' ; DL = character you want to print
INT 21h ; print it !!
INT 20h ; end of program
after around 3 hour I spent
all I can do is only to understand
--------------------------------------------------------------
how to compile
--------------------------------------------------------------
open your CMD
cd to your TASM folder
write: (if my file name is d_frEak.asm)
TASM d_frEak.asm
then if success there is no error message
tlink/t d_frEak
then
d_frEak
--------------------------------------------------------------
how to print one character only
--------------------------------------------------------------
MOV AH,02h ; The service to print character
MOV DL,'U' ; DL = character you want to print
INT 21h ; print it !!
INT 20h ; end of program
Subscribe to:
Posts (Atom)