Shop OBEX P1 Docs P2 Docs Learn Events
PNUT 35f Compiler Error — Parallax Forums

PNUT 35f Compiler Error

I can not compile this small Spin2 Prog.

PUB go () | X
  { this is not working }
  if reg[fp] == #func 'Compiler Error: Expected an expression term.
  return

  { and  this works }
  X := #func           'here i get no Compiler Error
  if reg[fp] == X      'and if ...... is working as expected
  return

DAT org
  mov fp, #func
  call fp
func ret
fp long 0

 

Comments

Sign In or Register to comment.