Shop OBEX P1 Docs P2 Docs Learn Events
[SOLVED] Using SETINDx with REPS, a little gotcha. - Page 6 — Parallax Forums

[SOLVED] Using SETINDx with REPS, a little gotcha.

12346»

Comments

  • ozpropdevozpropdev Posts: 2,793
    edited 2014-02-01 16:50
    jmg wrote: »
    Can't they both be right ?
    The 16 bit field has no 0 mapping, so the number is 1..2^16, instead of 0..2^16-1 ?

    The old instruction set used the Z effect bit in REPS as the 17th bit.
    Last time I checked 2^16 = 65536 not 131072. :)

    Edit: PNUT only allows 1 to 65536 as values for REPS
  • jmgjmg Posts: 15,175
    edited 2014-02-01 19:52
    I think your highlights of blue and green text are OK, and the red is a simple cut/paste legacy typo.
    When reading such texts, I tend to ignore the comments above the opcodes, and skip to the opcode encoding, but for accuracy the comments should ideally match the opcode lines they refer to.
    Fix : trim n_ you have in red ?
  • potatoheadpotatohead Posts: 10,261
    edited 2014-02-01 22:14
    Personally, I tend to read what others contribute, try and understand their intent and work from there, but that's just me. :)
Sign In or Register to comment.