Depending how you want to work but i don't see any benefit to use any assembler in that...
Code:VarA VAR BYTE VarB VAR BYTE Start: IF VarA > 10 then VarB = VarB + 1 ELSE VarA = 0 ENDIF
Depending how you want to work but i don't see any benefit to use any assembler in that...
Code:VarA VAR BYTE VarB VAR BYTE Start: IF VarA > 10 then VarB = VarB + 1 ELSE VarA = 0 ENDIF
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Once again i misread ... usually we answer to Melabs PicBasic or PicBasic not assembly...I know how to program in c++ but i'm trying to learn how to program in assembly
You may use some math substraction. Once the substraction's done, check the Z or Carry/Borrow bit of the STATUS Register... Well IMHO.
Last edited by mister_e; - 25th April 2006 at 03:20.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks