Add sqrt instruction

This commit is contained in:
Ian Gulliver
2021-11-21 17:04:58 -08:00
parent 05c62a92e1
commit 5ae34243b4
6 changed files with 61 additions and 0 deletions

View File

@@ -68,6 +68,10 @@ const (
OpRetT = OpReturnIfTrue
OpReturnIfFalse = 0x00000802
OpRetF = OpReturnIfFalse
OpSquareRoot = 0x00000900
OpSqRt = OpSquareRoot
OpSqrt = OpSquareRoot
)
type OperandNumericType int
@@ -118,4 +122,6 @@ var OperandsByOpCode = map[OpCodeType][]OperandNumericType{
OpRet: []OperandNumericType{},
OpRetT: []OperandNumericType{},
OpRetF: []OperandNumericType{},
OpSqrt: []OperandNumericType{OperandReference},
}