Hi,
Maybe a bit of an odd one, but anyway...
How can I print a NON zero-terminated string? In the first byte of my string I have 00 and it of course StdOut thinks it hit the zero terminator and so prints nothing. ::) Not useful for my purpose.
I'm struggling to find how to print an arbitrary, non-zero terminated string.
Best regards,
Astro.
.DATA
AString db 0,'Some String'
.DATA?
hStdOut dd ?
RdWrCnt dd ?
.CODE
INVOKE GetStdHandle,
STANDARD_OUTPUT_HANDLE
mov hStdOut,eax
INVOKE WriteFile,
hStdOut,
ADDR AString,
SIZEOF AString,
ADDR RdWrCnt,
NULL
Ahhh! I saw that earlier and wondered.
Thanks!
Best regards,
Astro.
btw - the null should appear as a space (white-space character)
255 is also supposed to be a white-space, but some video cards put a centered dot there
i think windows manages character maps, though - so who knows
With Windows you check the font used in CHARMAP iof you have it installed, otherwise pinch it from win2000.