11 Nov
Posted by julianhughes1975 as Uncategorized
for simplicity, i will talk about computer A and computer B. laptop A connects to the internet wirelessly, and i am trying to connect laptop B to the internet through A. i have an ethernet router and all required cables. i am trying to figure out if there’s a way to set [...]
Write a program that displays a character at 100 random locations using a delay of 100 milliseconds. Here’s what I have so far:
INCLUDE Irvine32.inc
CHAR_VAL = ‘Z’
COUNT = 100
DELAY_FACTOR = 100; delay in milliseconds
.data
rows BYTE ?
cols BYTE ?
randRow DWORD ?
randCol DWORD ?
.code
main PROC
callClrscr
callGetMaxXY; get console window size
movrows,dh
movcols,dl
movecx,COUNT; character count
L1: mov eax, DELAY_FACTOR
call Delay
movzx eax, dh
call RandomRange
mov [...]