@result does not work in asm function
Original Reporter info from Mantis: Hans44775
-
Reporter name:
Original Reporter info from Mantis: Hans44775
- Reporter name:
Description:
I have Asm-functions from BP, then used in Delphi3, but because of @result
not working in FreePascal 2.6.0, although @result should be supported
in "intel" ASMMODE according to "prog.pdf" page 62:
The Intel inline assembler supports the following macros:
@result represents the function result return value.
K>fpc Fpc_Asm_Result_err.pas -Mdelphi
Free Pascal Compiler version 2.6.0 [2011/12/25] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling Fpc_Asm_Result_err.pas
166 lines compiled, 0.2 sec
K>fpc Fpc_Asm_Result_err.pas -Mdelphi -dUpStrFasm
Free Pascal Compiler version 2.6.0 [2011/12/25] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling Fpc_Asm_Result_err.pas
Fpc_Asm_Result_err.pas(136,1) Error: Unknown label identifier @result
Fpc_Asm_Result_err.pas(167) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\FPC\2.6.0\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
Steps to reproduce:
fpc Fpc_Asm_Result_err.pas -Mdelphi -dUpStrFasm
Mantis conversion info:
- Mantis ID: 21188
- OS: WinXPpro SP3
- OS Build: 5.1.2600
- Platform: Win32
- Version: 2.6.0
- Monitored by: » Hans44775 (Hans44775)