mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-28 09:38:48 +00:00
Sync
This commit is contained in:
parent
0561c22217
commit
653ab9e0df
1 changed files with 4 additions and 1 deletions
|
|
@ -103,9 +103,12 @@ let compile env code =
|
|||
| WRITE ->
|
||||
let s, env' = env#pop in
|
||||
(env', [Push s; Call "Lwrite"; Pop eax])
|
||||
| CONST n ->
|
||||
| CONST n ->
|
||||
env#push (L n), []
|
||||
(*
|
||||
let s, env' = env#allocate in
|
||||
(env', [Mov (L n, s)])
|
||||
*)
|
||||
| LD x ->
|
||||
let s, env' = (env#global x)#allocate in
|
||||
env',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue