TITLE random practice (rand.asm)
; Penpa Gyaltsen,csc310
INCLUDE Irvine32.inc
.data
a dword 1
b dword 10
cuntx dword 100 dup(0)
space byte " ",0
delta dword ?
.code
main PROC
call randomize
mov eax, 0
mov esi, 0
mov eax, b
sub eax, a
inc eax
mov delta, eax
mov ecx, delta
mov esi, offset cuntx
mov edx, offset space
mov ecx, lengthof cuntx
L1:
mov eax,delta
call randomrange
inc eax
call writedec
call writestring
mov esi,eax
inc cuntx[esi]
mov eax,cuntx[esi]
call writedec
call crlf
loop L1;
exit
main ENDP
END main
-10 から 10 までの各数字を数える必要があります。どうすればよいですか?