PDA

View Full Version : asm to picbasic



wilfried
- 2nd March 2003, 18:23
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

sherm
- 12th March 2003, 02:18
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