Accessing Wn+offset from asm

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
peterverkaik
Posts: 174
Joined: 31 Aug 2009 22:44

Accessing Wn+offset from asm

#1 Post by peterverkaik » 21 Nov 2009 14:14

Hi,

I am trying to use instructions
mov [Wns+offset],Wd
mov[.B] Wns,[Wnd+offset]

but the compiler generates error on these instructions.

asm
vpTimer_S0:
mov _vpBase, W2
mov [W2 + nmTimer1], W1 ;'load value with highbyte clear
inc W1 ;'increment lowbyte
mov.b W1,[W2 + nmTimer1] ;'keep highbyte clear
end asm

Why is the instruction not supported?

regards peter

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”