MCPcopy Index your code
hub / github.com/endbasic/endbasic / do_integer_to_double

Method do_integer_to_double

core/src/vm/context.rs:826–831  ·  view source on GitHub ↗

Implements the `IntegerToDouble` opcode.

(&mut self, instr: u32)

Source from the content-addressed store, hash-verified

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) {

Callers 1

execMethod · 0.80

Calls 2

get_regMethod · 0.80
set_regMethod · 0.80

Tested by

no test coverage detected