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