HOWTIvITY

if you got any suggestions put in a comment please and don't forget to Subscribe

join this site

Wednesday, December 28, 2011

How to make a Hello world program in assembly language

Start command prompt got start menu> All Programmes> Accessories> command prompt
or just open run by holding down the windows button on the keyboard and click on R and
type in CMD.
now after we started the   command prompt type debug click return
type a 0100 click return
type mov ax, 0200 click return
type mov dx, 0048 click return
type int 21 click return  
type mov dx, 0065 click return
type int 21 click return    
type mov dx, 006c click return
type int 21 click return
type mov dx, 006c click return
type int 21 click return
type mov dx, 006f click return    
type int 21 click return
type mov dx, 0020 click return
type int 21 click return
type mov dx, 0077 click return  
type int 21 click return
type mov dx, 006f click return
type int 21 click return
type mov dx, 0072 click return  
type int 21 click return  
type mov dx, 006c click return     
type int 21 click return
type mov dx, 0064 click return  
type int 21 click return
type mov dx, 0021 click return
type int 21 click return  
type mov dx, 000d click return
type int 21 click return
type mov dx, 000a click return 
type int 21 click return
type int 20 click return  

The next command will calculate the number of bytes you need to write
h 014b 0100
Now name the program any thing (must have COM extension)
n anythinghere.com
Input the amount of bytes needed to be written stored in the count register
rcx
 004b

q
 exit




                                                                                                            - Mohammed Zahran -

No comments:

Post a Comment

back to top