As always, a great Darrel Taylor's project!
Thanks!
Ioannis
Wow, this is going to be very cool Darrel!
I know you said to keep trying if it wouldn't compile but I can't seem to get it to "go thru" when using it in the same program as DT-Ints... Boiled down example, this compiles:This does not compile (or assemble):Code:PRECISION CON 4 SYSTEM INCLUDE "N-Bit_Math.pbp" Setpoint VAR BYTE[PRECISION] Position VAR BYTE[PRECISION] Error VAR BYTE[PRECISION] Start: Pause 10 Goto StartI get a whole bunch of Symbol not previously defined FSR0L0L and so on.Code:PRECISION CON 4 SYSTEM INCLUDE "N-Bit_Math.pbp" INCLUDE "DT_INTS-18.pbp" 'Include the interrupt system files. INCLUDE "ReEnterPBP-18.pbp" ASM INT_LIST macro ;IntSource Label Type ResetFlag INT_Handler INT2_INT, _DoStep, PBP, yes endm INT_CREATE ENDASM @ INT_ENABLE INT2_INT Setpoint VAR BYTE[PRECISION] Position VAR BYTE[PRECISION] Error VAR BYTE[PRECISION] Start: Pause 10 Goto Start DoStep: Toggle PortB.7 @ INT_RETURN
Similarily, same code as above but simply removing the INCLUDE "N-Bit_Math.pbp"-line also compiles fine so there seems to be some incompatibillity there.I'm using 18F2431 but the device selected in MCS+ doesn't seem to matter.
Any ideas what might be the issue?
Thanks!
/Henrik.
Hmmm, apparently it's laughing at my use of FSR's "FSR0L0L".
You are correct, there is a conflict when used with DT_INTS-18.
DT-INTS-14 is OK.
I must find a way around it.
Thanks Henrik.
DT
Thanks again Henrick.
The FSR problem should be fixed.
The file has been updated to version 1.1 Alpha.
And should now work with DT-INTS-18.
http://www.picbasic.co.uk/forum/atta...4&d=1262930635
Cheers,
DT
Hey Darrel,
Only works for me with MPASM assembler case sensitive option enabled.
In DT_INTS-18;
SaveFSR macro F, Pr
RestFSR macro F, Pr
And in N-Bit_Math:
SAVEFSR macro
RESTFSR macro
Edit:
Too cool --- Classic Darrel...;o)Code:MOVE?PP macro BeerIN, Pout ; copy an N-bit variable to an N-bit variable BeerCount = 0 while BeerCount < PRECISION MOVE?BB BeerIN + BeerCount, Pout + BeerCount BeerCount = BeerCount + 1 endw endm
Last edited by Bruce; - 5th January 2010 at 00:24. Reason: OMG
Well, then keep case sensitivity enabled.Only works for me with MPASM assembler case sensitive option enabled.
OK, since it's you bruce.
Update 1.2 Alpha ; adds ability to turn Case Sensitivity off in MPASM
Changes SAVEFSR and RESTFSR, to FSRSAVE and FSRREST.
http://www.picbasic.co.uk/forum/atta...4&d=1262930635
I think I'll go MOVE?PP now.
<br>
DT
Must have missed a version update somewhere in the mix. 1.2a works as expected.
Nice find on the math routines. Very handy. Nice work on the PBP wrappers too.
Thanks.
What I had tested was the 1.1 Alpha 1/4/2010 ; fixes FSR conflict with DT_INTS-18
in post #1, which changed to 1.2 alpha within just few minutes from posting.
Last edited by Bruce; - 5th January 2010 at 01:33.
Bookmarks