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

Method do_gosub

core/src/vm/context.rs:770–776  ·  view source on GitHub ↗

Implements the `Gosub` opcode.

(&mut self, instr: u32)

Source from the content-addressed store, hash-verified

768
769 /// Implements the `Gosub` opcode.
770 pub(super) fn do_gosub(&mut self, instr: u32) {
771 let offset = bytecode::parse_gosub(instr);
772 if !self.push_frame(Frame { old_pc: self.pc, old_fp: self.fp, ret_reg: None }) {
773 return;
774 }
775 self.pc = Address::from(offset);
776 }
777
778 /// Implements the `GreaterDouble` opcode.
779 pub(super) fn do_greater_double(&mut self, instr: u32) {

Callers 1

execMethod · 0.80

Calls 1

push_frameMethod · 0.80

Tested by

no test coverage detected