asm to picbasic


Closed Thread
Results 1 to 2 of 2

Thread: asm to picbasic

  1. #1
    wilfried's Avatar
    wilfried Guest

    Default asm to picbasic

    Hello,

    how can I the following asm code convert to pbp?


    bsf STATUS,RP0 ' page 1
    bcf OPTION_REG,7 ' pullup enable

    Is there a big difference in the speed?

    Thanks

    Wilfried

  2. #2
    sherm's Avatar
    sherm Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Wilfried,

    Given that it is only two lines of asm, there would be no real advantage to doing the same thing from pic basic. You may as well just include your asm into your .bas code by delimiting it between the ASM and ENDASM instructions.

    ASM
    bsf STATUS,RP0 ' page 1
    bcf OPTION_REG,7 ' pullup enable
    ENDASM

    As for the speed issue, I think this would be faster ....

    Regards,
    Sherm

Similar Threads

  1. ASM cycles in PICBASIC
    By breeno in forum General
    Replies: 4
    Last Post: - 10th July 2006, 08:59
  2. asm e picbasic
    By chip15 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th April 2006, 16:03
  3. Replies: 22
    Last Post: - 12th July 2005, 17:39
  4. Can an asm interrupt contain gosub to a picbasic routine?
    By sougata in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st April 2005, 19:49
  5. Asm To Picbasic Disassembler
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th December 2003, 07:48

Members who have read this thread : 1

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