fn forward_jump_offset(from: usize, to: usize) -> Result<Opr24, JumpTooFar> {
      assert!(to >= from);
      let offset = to - from - Self::INSTRUCTION_SIZE;
      if u32::try_from(offset).is_err() {
         return Err(JumpTooFar(()));
      }
      Opr24::new(offset as u32).map_err(|_| JumpTooFar(()))
   }
/// Returns the offset of a forward jump instruction.
Returns the offset of a forward jump instruction.
Returns the offset of a forward jump instruction .
fn forward_jump_offset(from: usize, to: usize) -> Result<Opr24, JumpTooFar> {
      assert!(to >= from);
      let offset = to - from - Self::INSTRUCTION_SIZE;
      if u32::try_from(offset).is_err() {
         return Err(JumpTooFar(()));
      }
      Opr24::new(offset as u32).map_err(|_| JumpTooFar(()))
   }
fn forward_jump_offset ( from : usize , to : usize ) -> Result < Opr24 , JumpTooFar > { assert ! ( to from ) ; let offset = to - from - Self :: INSTRUCTION_SIZE ; if u32 :: try_from ( offset ) . is_err ( ) { return Err ( JumpTooFar ( ( ) ) ) ; } Opr24 :: new ( offset as u32 ) . map_err ( | _ | JumpTooFar ( ( ) ) ) }
Returns the offset of a forward jump instruction.
Returns the offset of a forward jump instruction .
from
usize
to
usize