flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
baldr
serfasm,
If b and a are signed, subtraction overflows and signed result is incorrect. If they are unsigned, b>a. |
|||
![]() |
|
edemko
Fasm should have his own flags register and some interface to access those. Poor Tomasz!
|
|||
![]() |
|
edemko
sad
|
|||
![]() |
|
edfed
erf and lol.
fasm don't have its own flags. fasm is coded with fasm. it uses the X86 flags regicter inside your CPU. the code you compile with fasm does not differ to the code used to compile. it is all assembler. i don't see the use of this off topic subject. Last edited by edfed on 05 Mar 2010, 20:41; edited 1 time in total |
|||
![]() |
|
edemko
hll approach. BTW fasmd.asm compiles in 0.1 seconds as uses no macros, Delphi uses lot-a-lot high level "macro" but no speed consumption(background?).
|
|||
![]() |
|
edemko
baldr wrote: This problem looks similar to signed vs. unsigned contradiction: b = a+1 <- should fasm inform OF=1? |
|||
![]() |
|
a115433
> < are signed or unsigned?
of will be only when yoy cross sign boundary. for example, try to add something to (byte mode) 127, or substract something from -128. -128 + 1 = -127, OF = 0 -128 - 1 = 127, OF = 1 127 + 1 = -128, OF = 1 127 - 1 = 127, OF = 0 |
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.