<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Fri, Mar 8, 2019 at 6:34 PM Anthony Walter <<a href="mailto:sysrpl@gmail.com" target="_blank">sysrpl@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>What registers are used by default calling convention and where can I find more information about Free Pascal asm details?</div></div></blockquote><div><br></div><div>For linux64 the default C.C is sysv x64. Some links with info you are looking for:</div><div><br></div><div>1. <a href="https://bugs.freepascal.org/view.php?id=34743" target="_blank">https://bugs.freepascal.org/view.php?id=34743</a> (a low-level Delphi-like invoke() almost done for Linux x86_64)</div><div>2. <a href="https://www3.nd.edu/~dthain/courses/cse40243/fall2017/intel-intro.html" target="_blank">https://www3.nd.edu/~dthain/courses/cse40243/fall2017/intel-intro.html</a> (Introduction to X86-64 Assembly for Compiler Writers)</div><div>3. <a href="https://www.uclibc.org/docs/psABI-x86_64.pdf" target="_blank">https://www.uclibc.org/docs/psABI-x86_64.pdf</a> (System V ABI [AMD64])</div><div>4. <a href="https://wiki.osdev.org/System_V_ABI" target="_blank">https://wiki.osdev.org/System_V_ABI</a> (some related links)</div><div><br></div><div>[....]</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Also is it possible to get the Lazarus assembler to show instructions in Intel mode rather than AT&T?</div></div></blockquote><div><br></div><div>Yes, just change the $asmmode to the syntax you want, e.g <font face="monospace, monospace" size="1">{$asmmode intel}</font>.</div><div><br></div></div>--<br><div dir="ltr" class="m_1961437456262235317m_5629697676329913272gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div></div></div></div></div></div></div></div></div></div></div>