Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED]Built-in assembler
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
IndySecOpenSSL is now ava...
by
LeP
[
Today
at 01:44:08 pm]
how to add a ForEach call...
by
jamie
[
Today
at 12:42:04 pm]
XLibre, finally and fortu...
by
kagamma
[
Today
at 12:15:10 pm]
[SOLVED] Watches panel is...
by
CM630
[
Today
at 12:06:33 pm]
How to monitor changes in...
by
Martin_fr
[
Today
at 11:55:18 am]
Conscious Artificial Inte...
by
Dzandaa
[
Today
at 11:50:59 am]
Printer Info
by
J-G
[
Today
at 11:26:52 am]
Strange Behaviour at Runt...
by
andrew Bubble
[
Today
at 11:19:45 am]
Can I get the position an...
by
CM630
[
Today
at 11:00:33 am]
[New Component] ExtTabCtr...
by
ovidio
[
Today
at 10:36:06 am]
Sizes and SizeInt
by
Thaddy
[
Today
at 09:57:42 am]
Gitlab site history date.
by
Martin_fr
[
Today
at 09:11:14 am]
WEBP, no DLLs
by
CM630
[
Today
at 08:52:43 am]
Dataset EnableControls/Di...
by
Sharfik
[
Today
at 07:40:21 am]
TVirtualDBTreeEx and upda...
by
Sharfik
[
Today
at 07:36:30 am]
made hooking newinstance ...
by
Thaddy
[
Today
at 06:56:17 am]
Interesting video
by
Curt Carpenter
[
Today
at 04:28:27 am]
I found an actual use for...
by
jamie
[June 09, 2026, 11:48:04 pm]
Lazarus Main and Gnome/Wa...
by
Jonax
[June 09, 2026, 09:02:10 pm]
MacOS post compilation sc...
by
marcou
[June 09, 2026, 07:30:07 pm]
water filling simulation
by
Dzandaa
[June 09, 2026, 06:53:35 pm]
Pdf Viewer in Pascal
by
Tomxe
[June 09, 2026, 05:00:32 pm]
How can 'Canvas does not ...
by
J-G
[June 09, 2026, 03:05:01 pm]
AArch64. Fast method to c...
by
Thaddy
[June 09, 2026, 01:58:45 pm]
Can /my/ AI help me with ...
by
microxa
[June 09, 2026, 12:12:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED]Built-in assembler (Read 1319 times)
avk
Hero Member
Posts: 826
[SOLVED]Built-in assembler
«
on:
November 07, 2019, 08:04:21 am »
It looks like a bug, attempt to compile this code:
Code: Pascal
[Select]
[+]
[-]
{$asmmode intel}
procedure
doasm
;
begin
asm
test rax
,
$8000000000000000
end
;
end
;
reports an error:
Code: Text
[Select]
[+]
[-]
... Error: Asm: signed dword value exceeds bounds -9223372036854775808
«
Last Edit: November 07, 2019, 09:08:01 am by avk
»
Logged
zamronypj
Full Member
Posts: 140
Re: Built-in assembler
«
Reply #1 on:
November 07, 2019, 08:33:39 am »
According to TEST instruction documentation
https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf
TEST RAX, imm32
So it accepts immediate value 32 bit operand. To test with 64 bit immediate value, CMIIW, I think you need to copy 64bit immediate value to 64bit register first
Code: ASM
[Select]
[+]
[-]
mov
rcx
,
$
8000000000000000
test
rax
,
rcx
«
Last Edit: November 07, 2019, 08:37:30 am by zamronypj
»
Logged
Fano Framework, Free Pascal web application framework
https://fanoframework.github.io
Apache module executes Pascal program like scripting language
https://zamronypj.github.io/mod_pascal/
Github
https://github.com/zamronypj
avk
Hero Member
Posts: 826
Re: Built-in assembler
«
Reply #2 on:
November 07, 2019, 08:49:27 am »
Thank you very much.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED]Built-in assembler
TinyPortal
© 2005-2018