Results 1 to 6 of 6

Thread: micromega FPU user defined function call - FCALL

Threaded View

  1. #1

    Default micromega FPU user defined function call - FCALL

    I am trying to call a user defined function on a micromega fpu. A portion of my code is listed. I am using:

    Code:
    '-------------------- uM-FPU USER DEFINED FUNCTIONS ---------------------------
    INIT_REGS           CON     $00    ' user defined FPU function, initialize fpu registers
    PROCESS_ADC         CON     $01 ' 
    CALC_ADJUSTMENT     CON     $02 ' 
    ' =========================================================================
      PROGRAM Start
    ' =========================================================================
    Start:
    Fpu_Reset
    Fpu_Write FCALL, INIT_REGS
    Main:
    PAUSE 5000
    GOTO Main



    Is this the correct way to call user defined functions on a micromega fpu. I have already loaded the attached fpu code onto the fpu using the micromega v3 ide. I am trying to sort out if my hardware or software is buggy? Any ideas...?

    Post Edited (slcott) : 12/28/2009 8:22:28 PM GMT
    Attached Files Attached Files
    Last edited by ForumTools; 09-30-2010 at 12:30 PM. Reason: Forum Migration

Bookmarks

Posting Permissions

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