我使用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