Update/add instructions in parser

* StoreImm just uses a u64 instead of u32 - we'll figure out the layout
  later
* Jmp implementation added (can't believe I forgot this)
* Add Inst AST item, whose immediates don't have to be a u64 right away

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-01-28 13:51:25 -05:00
parent 7e6c621c2b
commit f98a53654e
6 changed files with 63 additions and 29 deletions

View File

@@ -16,12 +16,13 @@ pub enum Inst {
CmpEq(Reg, Reg),
CmpLt(Reg, Reg),
Jmp(Reg),
Jz(Reg),
Jnz(Reg),
Load(Reg, Reg),
Store(Reg, Reg),
StoreImm(Reg, u32),
StoreImm(Reg, u64),
MemCopy(Reg, Reg),
RegCopy(Reg, Reg),