How to print a character in assembly level programing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to print a character in assembly level programing

18th Sep 2019, 8:39 AM
Anish shetty K
Anish shetty K - avatar
2 Answers
+ 2
.MODEL SMALL .STACK 100H .CODE MAIN PROC MOV AH, 2 ; display the character \'@\'. MOV DL, \"@\" INT 21H MOV AH, 4CH ; return control to DOS INT 21H MAIN ENDP END MAIN
18th Sep 2019, 11:11 AM
Kamlesh Kumar
Kamlesh Kumar - avatar
+ 1
Reply for kamlesh kumar code Thanks for the code But it only works for 16 bits I need a program for 32 or 64 bit processor Use eax, ebx .... Registers
21st Sep 2019, 2:58 AM
Anish shetty K
Anish shetty K - avatar