2019-07-13 20:49:22 +02:00
|
|
|
use16
|
|
|
|
align 1
|
|
|
|
|
|
|
|
include "..\include\mem.h"
|
|
|
|
|
|
|
|
org 0h
|
|
|
|
|
2019-07-14 12:47:14 +02:00
|
|
|
header exe 1,exports,0,0,0
|
2019-07-13 20:49:22 +02:00
|
|
|
|
|
|
|
exporting
|
|
|
|
declare random
|
|
|
|
declare randomize
|
|
|
|
ende
|
|
|
|
|
|
|
|
randseed dw 1234h
|
|
|
|
|
|
|
|
proc random uses dx
|
|
|
|
mov ax,[cs:randseed]
|
|
|
|
mov dx,8405h
|
|
|
|
mul dx
|
|
|
|
inc ax
|
|
|
|
mov [cs:randseed],ax
|
|
|
|
mov ax,dx
|
2019-07-17 17:29:13 +02:00
|
|
|
ret
|
2019-07-13 20:49:22 +02:00
|
|
|
endp
|
|
|
|
|
|
|
|
proc randomize uses ax cx dx
|
|
|
|
mov ah,0
|
|
|
|
int 1ah
|
|
|
|
mov [cs:randseed],dx
|
2019-07-17 17:29:13 +02:00
|
|
|
ret
|
2019-07-13 20:49:22 +02:00
|
|
|
endp
|