[PicForth] -! optimisation problem

David McNab david at rebirthing.co.nz
Mon Dec 6 15:14:52 CET 2004


Hi,

Is there any reason why:

   var1 @ var2 -!

generate:

   0x00B2	0829	movf	0x29,w
   0x00B3	3C00	sublw	0x00
   0x00B4	07B0	addwf	0x30,f

instead of something like:

   0x00B2	0829	movf	0x29,w
   0x00B3	02B0	subwf	0x30,f

?

I'm porting some assembler to pure forth, and the former generated code 
is causing some issues.

-- 
Cheers
David


More information about the PicForth mailing list