编译器,TASM 5
架构 x86。
对于随机数生成器算法,将时钟作为种子。
我找到了解决方案:
AcquireSeed PROC
PUSH AX
PUSH CX
PUSH DX
MOV Ah, 00h ; Int
INT 1AH ; return the clock in CX:DX
MOV seed, DL ; save the less significant byte of the clock at seed (declared at .data)
POP DX
POP CX
POP DX
AcquireSeed endp