Strange ASM file


Closed Thread
Results 1 to 3 of 3
  1. #1
    barkerben's Avatar
    barkerben Guest

    Default Strange ASM file

    I've just written an attempt at my code in PBP, and compiled it to produce an ASM file. However, the output loos very strange - it seems to use lots of non standard assembler commands, and running it through the microchip assembler compiler gives all sorts of errors.

    For instance, it uses:

    LABEL?L _change
    ICALL?L L00001
    and
    MOVE?CB 000h, _ID

    none of which are standard Assembler. Is something strange going on here?

    Ben

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

  3. #3
    barkerben's Avatar
    barkerben Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks - Proton+ looks amazing, but unfortunately I can only use what the department has available, and they only have PBP :-(

    The main reason I wanted to look at the assembler was because my supervisor can only undertand assembler, wheras I find it very tricky!

    I'm currently looking theough MPLAB to see if there is the reverse assemble option suggested be Melanie.

    However, if someone out there could comment on the following, I would be very grateful:

    I am basically generating a pulse stream to drive a steper IC.

    1) I am using hardware serial to receive and trasmit data. When a serial command arrives, an interrupt is generated, and the data is read. I was worried about latency leading to overflow of the buffer and other nastiness, so used the hardware timer and a timer interrupt to help guard against that problem - this way the main program is not occupied waiting around as wold be the case with pause statements. Do you think this will enable me to get to my data in time?


    2) I was unsure about the syntax for receiving data. I was planning on receiving 6 bytes, and therefore used the following command:

    HSERIN [bin ID,bin MODE,bin dist,bin SPEED,bin DIR,bin REQUEST]

    Where MODE, dist, etc are variables to store the received bytes in.
    Is this correct?



    Cheers,


    Ben

Similar Threads

  1. PBP, ASM and LST files
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th January 2010, 13:43
  2. Adding PBPro code to an ASM file - how to?
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th January 2010, 18:49
  3. Include ASM file help
    By harryweb in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd May 2007, 20:22
  4. The ultimate include file
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th January 2007, 19:35
  5. asm and pbp
    By pic beginner in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th October 2004, 05:33

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