annotate tangotests/asm3.d @ 228:52d1e9d27dc6 trunk

[svn r244] added another asm test.
author lindquist
date Sat, 07 Jun 2008 19:20:15 +0200
parents
children
rev   line source
lindquist@228 1 module tangotests.asm3;
lindquist@228 2
lindquist@228 3 extern(C) int printf(char*, ...);
lindquist@228 4
lindquist@228 5 void main()
lindquist@228 6 {
lindquist@228 7 char* fmt = "Hello D World\n";
lindquist@228 8 printf(fmt);
lindquist@228 9 asm
lindquist@228 10 {
lindquist@228 11 push fmt;
lindquist@228 12 call printf;
lindquist@228 13 pop EAX;
lindquist@228 14 }
lindquist@228 15 }