And yes, CNT=1 should be added in the beginning, or absolutely unexpected behavior will be generated (just tested)![]()
And yes, CNT=1 should be added in the beginning, or absolutely unexpected behavior will be generated (just tested)![]()
Regarding negative numbers, as long as both variables are of the same size what you did will work:But if Cnt was a WORD and Add a BYTE then Cnt woul equal 354.Code:Cnt VAR BYTE Add VAR BYTE Cnt = 100 Add = -1 Cnt = Cnt + Add ' Cnt now = 99
Bookmarks