![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-14 23:39 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS开发编程 & 发展交流 (开发室) » Question about BC |
| Printable Version 1,430 / 2 |
| Floor1 sanney | Posted 2003-01-21 00:00 |
| 初级用户 Posts 6 Credits 121 | |
|
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 } |
|
| Floor2 LanE | Posted 2003-02-02 00:00 |
| 银牌会员 Posts 648 Credits 1,835 | |
|
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).
|
|
| Floor3 Wengier | Posted 2003-02-02 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
To use the 80386 instruction set, just set “Instruction Set” under “Advanced Code Generation” in the “Options” menu of Borland C to 80386.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |