Assembly Syntax

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Assembly Syntax

#1 Post by JimKueneman » 02 Oct 2012 05:24

What is the right syntax for this?

Code: Select all

procedure Trap_AddressError; iv IVT_ADDR_ADDRESSERROR;
begin
  asm
    MOV [w15-36], w13
    MOV w13, _Addr_Minus36
    MOV [w15-34], w13
    MOV w13, _Addr_Minus34
    MOV [w15-32], w13
    MOV w13, _Addr_Minus32
  end;
end;
This won't compile.

Jim

JimKueneman
Posts: 417
Joined: 10 Jan 2009 22:03

Re: Assembly Syntax

#2 Post by JimKueneman » 02 Oct 2012 05:34

Figured it out....

Code: Select all

  var
    Addr_Minus36,
    Addr_Minus34,
    Addr_Minus32: Word;
Duh...

Jim

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”