comp.lang.ada
 help / color / mirror / Atom feed
* Ada asm
@ 2016-07-09  3:28 ma740988
  2016-07-09  3:35 ` Jeremiah
  2016-07-10 15:06 ` Jacob Sparre Andersen
  0 siblings, 2 replies; 3+ messages in thread
From: ma740988 @ 2016-07-09  3:28 UTC (permalink / raw)



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'm relatively new to Ada but I saw a link that describe the => as a positional notation.   It's not clear what the relationship between ldf and set_test_reg is.   I suspect ldf is passed into set_test_reg ..who knows.   I perused this guideline - link below but still unclear that the C++ equivalent might be.  Any help appreciated.

http://www.ibm.com/developerworks/rational/library/inline-assembly-c-cpp-guide/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-10 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-09  3:28 Ada asm ma740988
2016-07-09  3:35 ` Jeremiah
2016-07-10 15:06 ` Jacob Sparre Andersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox