flat assembler
Message board for the users of flat assembler.
Index
> Main > operand size not specified Goto page Previous 1, 2 |
Author |
|
baldr 05 Mar 2010, 19:13
serfasm,
If b and a are signed, subtraction overflows and signed result is incorrect. If they are unsigned, b>a. |
|||
05 Mar 2010, 19:13 |
|
edemko 05 Mar 2010, 20:05
Fasm should have his own flags register and some interface to access those. Poor Tomasz!
|
|||
05 Mar 2010, 20:05 |
|
edemko 05 Mar 2010, 20:34
sad
|
|||
05 Mar 2010, 20:34 |
|
edfed 05 Mar 2010, 20:40
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 |
|||
05 Mar 2010, 20:40 |
|
edemko 05 Mar 2010, 20:40
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?).
|
|||
05 Mar 2010, 20:40 |
|
edemko 07 Mar 2010, 23:22
baldr wrote: This problem looks similar to signed vs. unsigned contradiction: b = a+1 <- should fasm inform OF=1? |
|||
07 Mar 2010, 23:22 |
|
a115433 07 Mar 2010, 23:29
> < 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 |
|||
07 Mar 2010, 23:29 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.