Can't send a Reserved Word to math coprocessor


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default

    Aren't all the commands just OPCodes, ie each command "name" is assigned a constant value at the beginning of the program, like:
    Code:
    SIN CON $47
    COS CON $48
    A workaround would be to simply rename the SIN and COS to SINUS and COSINUS and assign the correct OPCode to that name instead, like:
    Code:
    SINUS CON $47
    COSINUS CON $48
    Then you use SINUS and COSINUS in the Shiftout statment instead of SIN and COS

    Another workaround is to simply replace the the constants SIN and COS in the Shiftout statement with their respective OPCodes.

    /Henrik.
    Last edited by HenrikOlsson; - 5th October 2009 at 19:28.

Similar Threads

  1. Active low input?
    By CosMecc in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 8th August 2010, 21:31
  2. RF Modules
    By tonyfelloni in forum mel PIC BASIC Pro
    Replies: 44
    Last Post: - 26th June 2010, 18:42
  3. Minimizing code space
    By Tobias in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th May 2009, 08:25
  4. DS2760 Thermocouple Kit from Parallax in PicBasicPro
    By seanharmon in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th July 2008, 00:19
  5. calculation problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2006, 16:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts