GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Tuesday, December 21, 2010

Output For Char In Assembly

Here's a bit of code on how to display a char to screen in x86 processor:

MOV AH,02    ; Function to output a char
MOV DL,"A"   ;  Character to output and copy it to DL
INT 21h      ; Call windows interupt to output "A"

MOV AH,4Ch   ; Function to exit
MOV AL,00    ; Copy 00 to AL, Return 0
INT 21h      ; Call interupt to exit  
 

Share/Bookmark

No comments:

Post a Comment