Rom Bios在C#中中断 [英] Rom Bios Interrupt in C#

查看:65
本文介绍了Rom Bios在C#中中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在C#中调用基本中断,如
在Turbo C中,其给定函数可以调用Bios的基本中断

int86(interrupt_number,&input_Register,&Output_Register);

how i am call basic interrupt in C# like
in Turbo C its give function to call basic interrupt of Bios

int86(interrupt_number,&input_Register,&Output_Register);

any function given in C# to call Bios interrupt?

推荐答案

不,没有这样的功能,也不能用c#来完成. C#中绝对没有任何assember支持.抱歉.
No, there is no such function, nor can this task be accomplished with c#. There is absolutely no assember support in c#. Sorry.


除了Toli所说的以外,请注意,在 Windows 系统上,处理器以保护模式运行:意味着您需要内核模式特权来执行一些指令,并且调用 BIOS中断是一项非常复杂的任务.

您可以使用 C C ++ 处理汇编程序,但绝对不能使用 C#处理汇编程序,无论如何我都无法弄清楚为什么需要对 BIOS : .NET Framework 具有几乎可以完成所有操作的类;另一方面,如果您确实需要这种底层编程,那么 C#是错误的选择...
In addition to what Toli already said, be aware that on Windows systems the processor run in protected-mode: this mean that you require kernel mode privileges to execute some instructions, and calling a BIOS interrupt is a quite complicated task.

You can deal with assembler with C and C++, but absolutely not with C#, anyway I cannot figure out why you need to make calls into the BIOS: the .NET Framework has classes to do almost everything; on the other hand, if you really need this kind of low-level programming, then C# is a wrong choice...


这篇关于Rom Bios在C#中中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆