flat assembler
Message board for the users of flat assembler.
Index
> Main > Jump Above or Equal, or Jump Carry Clear. |
Author |
|
SoLo2 26 Aug 2007, 05:32
I am using 1 Byte in AL to
count from 244 to 0 included. This means that I have to check for zero or above to repeat the loop, or carry clear, as I think that carry would happen when turning from 0 to -1 (255), right? Well... I tried a little routine like this in fasm, but it never ends: mov al,244 loop0: call ClearFMRegister dec al jcc loop0 FYI, this is supposed to clear registers of the FM synth of soundblaster/adlib cards (which I don't manage too sound) Greetings, so_o2 _________________ ~~~~~~*~~~~~~~~~~~~~~~~~~~~~~~ http://thebitsclub.tripod.com/ http://so_o2.tripod.com/delfin.html http://so_o2.tripod.com/xmus.html http://www.geocities.com/mud_gallery/index.html |
|||
26 Aug 2007, 05:32 |
|
SoLo2 26 Aug 2007, 07:05
Thanks ManOfSteel!
I will be using "sub reg,1" then. And, of course, it was "jnc" and not "jcc". Greetings, SoLo2 |
|||
26 Aug 2007, 07:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.