Re: Keywords and Namesapces
- Posted by Vinoba Oct 07, 2011
- 40551 views
I should have said
Dec AL
I have used DEC A in Z80 processor and Dec AL or DEC AX in 8080 onwards processors till 80386, when I stopped programming in assembler.
IT ALWAYS WORKS TO SET THE Z FLAG if the decrement operation results in a zero in the accumulator.
Not only that, the setting of zero flag in the accumulator upon an arithmetic operation of a 8 and 16 bit processor is so fundamental as to be inviolable. Of course compare also works, but DEC takes you smoothly through trapping 1 to 5 and making a relative jump.
In the Euphoria way of describing things, DEC AL or DEC AX is a built-in excessively well tried and tested operation.