The MASM Forum

General => The Campus => Topic started by: Oliver Scantleberry on December 05, 2016, 03:52:36 PM

Title: MASM--Printing a single character
Post by: Oliver Scantleberry on December 05, 2016, 03:52:36 PM
What's the best way to print a single character at the current console cursor location? Say the character is in AL or CL for example.
Title: Re: MASM--Printing a single character
Post by: jj2007 on December 05, 2016, 10:25:32 PM
include \masm32\include\masm32rt.inc

.code
start:
  mov ebx, "a"
  .Repeat
push ebx
print esp, " "
inc ebx
pop eax
  .Until ebx>"z"
  MsgBox 0, "Masm32 is great", "Hello World:", MB_OK
  exit

end start