good morning!!!!

Skip to content
Snippets Groups Projects
Commit c514fbcc authored by dm4's avatar dm4 Committed by Felix Lange
Browse files

core/asm: accept uppercase instructions (#16531)

parent 52b046c9
Branches
Tags
No related merge requests found
......@@ -236,12 +236,12 @@ func (c *Compiler) pushBin(v interface{}) {
// isPush returns whether the string op is either any of
// push(N).
func isPush(op string) bool {
return op == "push"
return strings.ToUpper(op) == "PUSH"
}
// isJump returns whether the string op is jump(i)
func isJump(op string) bool {
return op == "jumpi" || op == "jump"
return strings.ToUpper(op) == "JUMPI" || strings.ToUpper(op) == "JUMP"
}
// toBinary converts text to a vm.OpCode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment