Implements the `IntegerToDouble` opcode.
(&mut self, instr: u32)
| 824 | |
| 825 | /// Implements the `IntegerToDouble` opcode. |
| 826 | pub(super) fn do_integer_to_double(&mut self, instr: u32) { |
| 827 | let reg = bytecode::parse_integer_to_double(instr); |
| 828 | let ivalue = self.get_reg(reg) as i32; |
| 829 | self.set_reg(reg, (ivalue as f64).to_bits()); |
| 830 | self.pc += 1; |
| 831 | } |
| 832 | |
| 833 | /// Implements the `Jump` opcode. |
| 834 | pub(super) fn do_jump(&mut self, instr: u32) { |