Add conditional call instructions

This commit is contained in:
Ian Gulliver
2021-11-19 16:24:04 -10:00
parent 6e36152b6a
commit 7a24eee583
4 changed files with 89 additions and 25 deletions

View File

@@ -5,8 +5,6 @@ type OpCodeType uint32
const (
OpNoOp OpCodeType = 0x00000000
OpNop = OpNoOp
OpCall = 0x00000001
OpCal = OpCall
OpReturn = 0x00000002
OpRet = OpReturn
@@ -48,4 +46,11 @@ const (
OpJmpT = OpJumpIfTrue
OpJumpIfFalse = 0x00000402
OpJmpF = OpJumpIfFalse
OpCall = 0x00000500
OpCal = OpCall
OpCallIfTrue = 0x00000501
OpCalT = OpCallIfTrue
OpCallIfFalse = 0x00000502
OpCalF = OpCallIfFalse
)