If I do this var a,b,c:cardinal; begin a:=$80000000; b:=$80000000; c:=a+b; end; c will开发者_运维问答 equal 0, since the addition overflowed. What\'s the best way to catch this overflowed boolean?
When writing a Delphi procedure or function in assembly code, which registers must be saved and restored to the original value at the end of the procedure?
I am trying to learn inline assembly programming in Delphi, and to this end I have found this article highly helpful.
Sometimes I write very short assembly functions like function SeniorBit(Value: LongWord): Integer; asm OREAX,EAX
I have this code below, and I want to translate it to ASM, to use in Delphi too. var FunctionAddressList: Array of Integer;