China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 20:45
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Question about BC View 1,351 Replies 2
Original Poster Posted 2003-01-21 00:00 ·  中国 天津 CNNIC会员电信节点
初级用户
Credits 121
Posts 6
Joined 2003-01-07 00:00
23-year member
UID 698
Gender Male
Status Offline
Why is it that when embedding assembly under bc3.1, I can't use instructions like eax, for example
void test()
{
asm xor eax,eax
}
Floor 2 Posted 2003-02-02 00:00 ·  中国 安徽 滁州 天长市 电信
银牌会员
★★★
Credits 1,835
Posts 648
Joined 2002-11-08 00:00
23-year member
UID 197
Gender Male
Status Offline
Because the assembly in bc uses the 8086 instruction set, and the 8086 does not have the eax register (though it seems the 80x86 instruction set can be used if you add some compiler options; I don't remember very clearly).
Floor 3 Posted 2003-02-02 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
To use the 80386 instruction set, just set “Instruction Set” under “Advanced Code Generation” in the “Options” menu of Borland C to 80386.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: