cygwin 能用linux的软中断吗?

liang13664759 2008-10-29 08:37:22
cygwin 能用linux的软中断吗?cygwin里面的编译器会吧把linux下的int 80这类转换成windows下对应的int 21之类的吗?

我试了下面一段程序

.section .data
output:
.ascii "the processor Vendor ID is xxxxxxxxxxxx"
.section .text
.globl _start
_start:
nop
movl $0, %eax
cpuid
movl $output, %edi
movl %ebx, 28(%edi)
movl %edx, 32(%edi)
movl %ecx, 36(%edi)
movl $4, %eax
movl $1, %ebx
movl $output, %ecx
movl $42, %edx
int $0x80
movl $1, %eax
movl $0, %ebx
int $0x80

走到int 80时就出错了,大侠们有用过的就请指教一下?
...全文
59 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
hngsc_0 2008-10-29
  • 打赏
  • 举报
回复
没用过
既然是模拟,感觉上应该会!

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧