• ParanoiaComplex@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    edit-2
    5 months ago

    I don’t know Rust but jump typically moves the program counter, where the height represents the number of instructions to move

    • trxxruraxvr@lemmy.world
      link
      fedilink
      arrow-up
      14
      ·
      5 months ago

      Afaik rust doesn’t have functions like that as they lead to unsafe code that’s impossible to check variable lifetimes for. I think OP created the jump function.