Reference no: EM13165791
Write a program that displays a single character
at 100 random screen locations, with a delay factor of 100 milliseconds.
Hint: set the console window screen height to 200 at runtime, and
watch the scroll bar jump up and down.
I have this code but I am getting a error on GetMaxXY.
INCLUDE Irvine32.inc
MAX_COUNT = 100
.data
str1 BYTE "Enter a character: ",0
char BYTE ?
rows BYTE ?
cols BYTE ?
randrow BYTE ?
randcol BYTE ?
.code
main PROC
mov edx, OFFSET str1
call writeString
call ReadChar
mov char, al
call crlf
call WriteChar
call crlf
mov eax,0
mov ebx,0
mov ecx,0
mov edx,0
call crlf
call GetMaxXY
mov rows,dh
mov cols,dl
call crlf
call crlf
mov eax,0
mov ebx,0
mov ecx,0
mov edx,0
;creating random numbers
mov ecx,MAX_COUNT ;counter
L1:
movzx eax,rows
call RandomRange
mov randrow, al
;call WriteDec
call crlf
mov eax,0
movzx eax,cols
call RandomRange
mov randcol, al
;call WriteDec
call crlf
mov eax,0
mov ebx,0
mov edx,0
mov dh,randrow
mov dl,randcol
call Gotoxy
movzx eax,char
call WriteChar
call crlf
mov eax,0
loop L1
exit ;exiting main.
main ENDP
END main
Write a c++ program that prompts the user for a double
: Write a C++ program that prompts the user for a double that should be between 0 and 100. If the value entered is outside of the interval the program will print an error message. The program should continue to repeat until the user enters an appropria..
|
Alphabet of 10 digits, 26 letters, and 3 punctuation marks
: the ciphers in the following problem use this alphabet of 10 digits, 26 letters, and 3 punctuation marks - 39 charactters is all 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
Javascript program that asks the use
: Design a javascript program that asks the user for a username with at least eight characters, beginning with a letter and including at least one digit. Next, write a validation loop to ensure that these conditions have been met
|
Design, simulate and verify a 16-bit ripple-carry
: Design, simulate and verify a 16-bit ripple-carry adder by performing the following additions/subtractions (the values of a and b are given in decimal): (i) (-10) + (100), (ii) (63) - (-127), (iii) (15) + (95), (iv) (-32) + (79), (v) (-59) + (-16)..
|
Displays a single character at 100 random screen
: Write a program that displays a single character at 100 random screen locations, with a delay factor of 100 milliseconds.Hint: set the console window screen height to 200 at runtime.
|
Populate a one-dimensional array
: Populate a one-dimensional array with the following grades in this order: 93, 61, 72, 45, 84, 51, 70, 83, 96, and 66. Use a loop to call a method from main() that adds
|
Write a program that generates all the factors of a number
: Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3.
|
Java method for radix sort in binary
: java method for radix sort in binary but I want to understand how to do it so please make it as simple as possible
|
C string and two int reference parameters
: Write a complete function, not an entire program, that has a C string and two int reference parameters (call them a and b), returning nothing.
|