Use this code as a starter.
Include Irvine32.inc
.data
outHandle HANDLE ?
cellsWritten DWORD ?
xyPos COORD <0,0>
buffer DWORD 4000 DUP(?)
BufSize DWORD 4000
attributes DWORD 4000 DUP(?)
.code
main PROC
call Randomize
;procedure to fill buffer needed
;procedure to set color needed
INVOKE GetStdHandle,STD_OUTPUT_HANDLE
mov outHandle,eax
INVOKE WriteConsoleOutputAttribute,
outHandle, ADDR attributes,
BufSize, xyPos, ADDR cellsWritten
INVOKE WriteConsoleOutputCharacter,
outHandle, ADDR buffer, BufSize,
xyPos, ADDR cellsWritten
exit
main ENDP
END main
Show Code
Oops! You must be logged in as a PRO MEMBER to see the code for this post. If you're a returning member, please click the LOGIN tab above to log in. If you're not a member yet, head over the Home page and scroll down to SIGN UP 🙂