a Simple “Hello World” Inline Assembly language Program in C/C++
问题 i use devcpp and borland c compiler.... asm { mov ax,4 // (I/O Func.) mov bx,1 // (Output func) mov cx,&name // (address of the string) mov dx,6 // (length of the string) int 0x21 // system call } in the above code snippets i want to print a string with the help of assembly language... but how can i put the address of the string in register cx.... is there something wrong in code??? 回答1: I don't have the Borland compiler on hand, so I might be misremembering its syntax, but have you tried