• ParanoiaComplex@lemmy.world
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    17 days 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
      ·
      17 days 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.