Evaluating VM expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • VRYK
    Super Member
    Super Member
    • Jan 2009
    • 226

    Evaluating VM expression

    I would be grateful for guidance on how to dissect the expression : Set gprm(1) &=(and) 15, where gprm(1) = 0 and which evaluates to 0. I take it that the “&” is the bitwise and – but the “(and)” ?
  • r0lZ
    Lord of Digital Video
    Lord of Digital Video
    • Mar 2004
    • 1508

    #2
    (and) is synonym to &=. Maybe I should have suppressed the double notation, but for compatibility with IfoEdit, I have decided to put both notations in the command. All operators are treated the same way. For example, += is also translated to (add). Sorry if it's not obvious.

    BTW, there is a good plugin for PgcEdit called "hex bit operands" that displays exactly what each operator does. Try it if you're unsure.
    r0lZ
    PgcEdit homepage (hosted by VideoHelp)
    Unofficial mirror (in Poland)

    Comment

    • VRYK
      Super Member
      Super Member
      • Jan 2009
      • 226

      #3
      Many thanks for your explanation. The plug-in is really helpful.

      Comment

      Working...