fox32+fox32asm: Remove pow instruction
This commit is contained in:
parent
07a0026207
commit
c23666161b
|
@ -111,7 +111,6 @@ instruction_two = @{
|
||||||
"add" |
|
"add" |
|
||||||
"sub" |
|
"sub" |
|
||||||
"mul" |
|
"mul" |
|
||||||
"pow" |
|
|
||||||
"div" |
|
"div" |
|
||||||
"rem" |
|
"rem" |
|
||||||
"and" |
|
"and" |
|
||||||
|
|
|
@ -189,7 +189,6 @@ enum InstructionTwo {
|
||||||
Add,
|
Add,
|
||||||
Sub,
|
Sub,
|
||||||
Mul,
|
Mul,
|
||||||
Pow,
|
|
||||||
Div,
|
Div,
|
||||||
Rem,
|
Rem,
|
||||||
And,
|
And,
|
||||||
|
@ -922,7 +921,6 @@ fn parse_instruction_two(pair: pest::iterators::Pair<Rule>, mut lhs: AstNode, mu
|
||||||
"add" => InstructionTwo::Add,
|
"add" => InstructionTwo::Add,
|
||||||
"sub" => InstructionTwo::Sub,
|
"sub" => InstructionTwo::Sub,
|
||||||
"mul" => InstructionTwo::Mul,
|
"mul" => InstructionTwo::Mul,
|
||||||
"pow" => InstructionTwo::Pow,
|
|
||||||
"div" => InstructionTwo::Div,
|
"div" => InstructionTwo::Div,
|
||||||
"rem" => InstructionTwo::Rem,
|
"rem" => InstructionTwo::Rem,
|
||||||
"and" => InstructionTwo::And,
|
"and" => InstructionTwo::And,
|
||||||
|
@ -1053,7 +1051,6 @@ fn instruction_to_byte(node: &AstNode) -> u8 {
|
||||||
InstructionTwo::Add => 0x01 | size_to_byte(size),
|
InstructionTwo::Add => 0x01 | size_to_byte(size),
|
||||||
InstructionTwo::Sub => 0x21 | size_to_byte(size),
|
InstructionTwo::Sub => 0x21 | size_to_byte(size),
|
||||||
InstructionTwo::Mul => 0x02 | size_to_byte(size),
|
InstructionTwo::Mul => 0x02 | size_to_byte(size),
|
||||||
InstructionTwo::Pow => 0x12 | size_to_byte(size),
|
|
||||||
InstructionTwo::Div => 0x22 | size_to_byte(size),
|
InstructionTwo::Div => 0x22 | size_to_byte(size),
|
||||||
InstructionTwo::Rem => 0x32 | size_to_byte(size),
|
InstructionTwo::Rem => 0x32 | size_to_byte(size),
|
||||||
InstructionTwo::And => 0x03 | size_to_byte(size),
|
InstructionTwo::And => 0x03 | size_to_byte(size),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user