Shop OBEX P1 Docs P2 Docs Learn Events
Now it's a code test — Parallax Forums

Now it's a code test

Roger LeeRoger Lee Posts: 339
edited 2009-08-15 03:11 in General Discussion
Think I'm getting the hang of this

DAT
        org    0
Asm     mov    Vaddr, par             ' Get common variable address 
        rdlong Temp, Vaddr            ' Read variable
:Loop   add    Temp, #1               ' Perform operation
        wrlong Temp, Vaddr            ' Write variable
        jmp    #:Loop                 ' loop

Vaddr   long  0                       ' address of common variable
Temp    long  0


Post Edited (Roger Lee) : 8/17/2009 3:00:15 AM GMT
Sign In or Register to comment.