Add unimplemented yield instruction

This commit is contained in:
Andrew Morris
2023-05-31 14:20:45 +10:00
parent 0eda3716ae
commit 12bfe5bf7f
7 changed files with 21 additions and 2 deletions

View File

@@ -230,6 +230,7 @@ impl<'a> AssemblyParser<'a> {
("next", InstructionByte::Next),
("unpack_iter_res", InstructionByte::UnpackIterRes),
("cat", InstructionByte::Cat),
("yield", InstructionByte::Yield),
]);
for (word, instruction) in instruction_word_map {
@@ -695,6 +696,7 @@ impl<'a> AssemblyParser<'a> {
self.assemble_register(),
),
Cat => Instruction::Cat(self.assemble_value(), self.assemble_register()),
Yield => Instruction::Yield(self.assemble_value(), self.assemble_register()),
}
}