forked from S0UZER/zombiehub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandom.vm
More file actions
43 lines (43 loc) · 633 Bytes
/
Random.vm
File metadata and controls
43 lines (43 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
function Random.new 0
push constant 2
call Memory.alloc 1
pop pointer 0
push argument 0
pop this 0
push constant 1
pop this 1
push pointer 0
return
function Random.dispose 0
push argument 0
pop pointer 0
push pointer 0
call Memory.deAlloc 1
pop temp 0
push constant 0
return
function Random.moveNext 1
push argument 0
pop pointer 0
push this 1
push this 0
add
push constant 16384
call Utils.mod 2
pop local 0
push this 1
pop this 0
push local 0
pop this 1
push constant 0
return
function Random.next 0
push argument 0
pop pointer 0
push pointer 0
call Random.moveNext 1
pop temp 0
push this 1
push argument 1
call Utils.mod 2
return