我使用DEVCPP和Borland C編譯器....在C簡單的「Hello World」內聯彙編語言程序/ C++
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
}
在上面的代碼片段我想打印的幫助下串彙編語言... 但我怎麼可以把寄存器CX字符串的地址....
是有什麼錯誤的代碼???
爲0x21 - 哇讚譽爲獲得本源:-) – 2010-02-01 18:58:38
被如何存儲字符串?即:「name」的聲明是什麼? – GManNickG 2010-02-01 19:20:19
我建議忽略16位實模式彙編器,並直接從32位彙編器開始。這些日子更容易和更實際。 – 2010-02-01 19:24:03