From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Ada asm Date: Sun, 10 Jul 2016 17:06:10 +0200 Organization: JSA Research & Innovation Message-ID: <87r3b1ednh.fsf@adaheads.consafe1.org> References: <62f6046a-fea2-4478-ab57-8fef3b0cd426@googlegroups.com> NNTP-Posting-Host: 109.57.92.108.mobile.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: franka.jacob-sparre.dk 1468163165 6238 109.57.92.108 (10 Jul 2016 15:06:05 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sun, 10 Jul 2016 15:06:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:00AgdMMZebWuRnPhMy9YHSyH0UE= Xref: news.eternal-september.org comp.lang.ada:31049 Date: 2016-07-10T17:06:10+02:00 List-Id: ma740988@gmail.com writes: > Debated if I should post my question in comp.lang.c++ but opted for > comp.lang.ada instead. I'm perusing Ada code and I'm trying to > determine the C++ equivalents for the following: > > asm'( ldf => "set_test_reg:"); > > -- > -- Set System MFT Address Register located at 0x00AD) > -- > asm'( ldf => "mtmft 0x00AD, r1"); I don't know enough about C++ machine code insertion, but the Ada definitions can be found in section 13.8 in the Ada Reference Manual, and the implementation specifics for GCC can be found in the GNAT Reference Manual (https://gcc.gnu.org/onlinedocs/gnat_rm/Machine-Code-Insertions.html#Machine-Code-Insertions). > I'm relatively new to Ada but I saw a link that describe the => as a > positional notation. That's a mistake. Using "=>" is named notation. Just listing values in a comma-separated list is positional notation. Greetings, Jacob -- Better save than sorry!