Hello Assembly!

Taylor Hillegeist via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 12 15:10:30 PDT 2015


So i was playing around with the D inline assembly trying to make 
it say hello world on my windows setup...

void main(){
     asm
     {
         myhello:
         db "HELLO, WORLD$";
         mov EAX , myhello;
         mov AH, 0x09;
         int 0x21;
     }
}


I figure this should do it. but i'm running into problems. 
Anybody know why?


More information about the Digitalmars-d-learn mailing list