News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

MASM--Printing a single character

Started by Oliver Scantleberry, December 05, 2016, 03:52:36 PM

Previous topic - Next topic

Oliver Scantleberry

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.

jj2007

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