何时使用16位汇编 [英] when to use 16-bit assembly
问题描述
我想开发的是一个32位操作系统。
所以我开始使用NASM x86 32位编程。
但是在开发操作系统时我需要16位汇编程序。
你能建议吗?
Quote:我想开发的是32位操作系统。
这是一项艰巨的任务!
引用:所以我已经开始使用NASM x86 32位编程。
我本来会先学习一些关于操作系统的书。
引用:但是什么时候我需要16位汇编程序来开发操作系统。
我不会打扰。
< blockquote class =FQ>Quote:你能建议吗?
查看引导 [ ^ ]
最好的问候
Espen Harlinn
这个问题与手头的任务相比无关紧要.BTW:为什么要在汇编中编写操作系统?这是在上世纪七十年代放弃的,即。 C是为了重新编写UNIX而发明的,因为没有它,工作结果就不会缩放...
几乎所有你能通过汇编程序实现的东西都可以通过体面的C来实现交叉编译器 - 一些罕见的例外情况适用。
C可以实现的一切都可以通过降级C ++交叉编译器来实现 - 可能没有例外。 ;-)
是否有一些我写自己的操作系统发烧突破?例如。另见重新发送类似请求 [ ^ ]。 ;-)
OS的期望可能会有所不同。
干杯
Andi
Hi,
All I would like to develop is a 32 bit operating system.
So I have started with NASM x86 32-bit programming.
But when is it that i require 16-bit assembly programs while developing an operating system.
Could you please suggest?
Quote:All I would like to develop is a 32 bit operating system.
That''s a daunting task!
Quote:So I have started with NASM x86 32-bit programming.
I would have first studied some books about operative systems.
Quote:But when is it that i require 16-bit assembly programs while developing an operating system.
I wouldn''t bother about.
Quote:Could you please suggest?
You might start reading this article series: Beginning Operating System Development"[^]
Have a look at Booting[^]
Best regards
Espen Harlinn
This question is so irrelevant compared to the task at hand. BTW: why would you write an OS in assembly? This was given up in the senventies of the last century, I.e. C was invented to re-write UNIX since without it the work results would not have scaled...
Almost everything you can achieve by assembler can be achieved by decent C cross-compiler - some rare exceptions apply.
Everything you can achieve by C can be achieved by a decend C++ cross-compiler - probably no exceptions apply. ;-)
Is there some I-write-my-own-OS fever breakout? E.g. see also a resent similar request[^]. ;-)
Expectations on "OS" may vary, though.
Cheers
Andi
这篇关于何时使用16位汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!