-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from ujjwal-kr/experimental-3.1
3.1
- Loading branch information
Showing
26 changed files
with
1,552 additions
and
640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
main: | ||
ram nums :vec :int = [12, 22, 14, 10000] | ||
ram largest :int = 0 | ||
vec largest = nums[0] | ||
ram i :int = 0 | ||
ram curr :int = 0 | ||
jmp a: | ||
ram i :int = 0 | ||
jmp ok: | ||
|
||
a: | ||
vec curr = nums[i] | ||
ram 1 | ||
add i | ||
ram lx prev | ||
copy i = lx | ||
copy lx = curr | ||
ram lx | ||
copy lx = largest | ||
ram lx | ||
cmp | ||
jgr swap: | ||
copy lx = i | ||
ram lx | ||
vec nums len | ||
cmp | ||
jne a: | ||
print var largest | ||
halt | ||
ok: | ||
ram lx 1 | ||
add i lx | ||
ram lx prev | ||
copy i = lx | ||
ram v8 :map | ||
insert v8 { "hp": 3000 } | ||
insert v8 { "meow": 3000 } | ||
insert v8 { "omk": "3000" } | ||
|
||
ram car :map | ||
insert car { "name": "d" } | ||
insert car { "engine": v8 } | ||
|
||
ram lx | ||
ram 500000000 | ||
cmp | ||
je halt: | ||
drop car | ||
jmp ok: | ||
|
||
halt: | ||
dbg | ||
halt | ||
|
||
swap: | ||
copy largest = curr | ||
ret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
main: | ||
ram x :map | ||
|
||
ram y :map | ||
insert x { "randstring": y } | ||
|
||
ram z :map | ||
insert z { "randstring1": x } | ||
|
||
ram a :map | ||
insert a { "randstring2": z } | ||
|
||
ram b :map | ||
insert b { "randstring3": a } | ||
|
||
ram c :map | ||
insert c { "randstring4": b } | ||
|
||
ram d :map | ||
insert d { "randstring5": c } | ||
|
||
ram e :map | ||
insert e { "randstring6": d } | ||
|
||
ram f :map | ||
insert f { "randstring7": e } | ||
|
||
ram g :map | ||
insert g { "randstring8": f } | ||
|
||
ram h :map | ||
insert h { "randstring9": g } | ||
|
||
ram i :map | ||
insert i { "randstring10": h } | ||
|
||
ram j :map | ||
insert j { "randstring11": i } | ||
|
||
ram k :map | ||
insert k { "randstring12": j } | ||
|
||
ram l :map | ||
insert l { "randstring13": k } | ||
|
||
ram m :map | ||
insert m { "randstring14": l } | ||
|
||
ram n :map | ||
insert n { "randstring15": m } | ||
dbg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.