On Sun, Oct 16, 2011 at 10:47 PM, Rishi Agarwal <[email protected]> wrote:
> @Narendra
> I know OpenGL but actually in my assignment I have to use ROM BIOS
> functions. To invoke this functions I have to use interrupt and
> registers available in 8086. These functions can be used in windows by
> including dos.h. I want to know that is there something similar in
> Linux.
>
> @Tavish
> I included these files but it doesn't recognize "int86" & "REGS"
> function that I use in windows. Any idea, what can be used at their
> place?
>
@Rishi:

unix-like operating systems are written 95% in c and only 5% in
assembler-- for original unix-- and talking directly to hardware- as
well as lack of portability-- is discouraged as part of unix's design
philosophy.

So, while logically you could use assembler-- compile it to a .o
file-- and link with your c code into a executable-- using assembler
is not the preferred way of doing this under unix.

I suggest that for your assignment-- use turbo-c/c++ ---> in dos-box
if not in dos/windows-- and get the assignment done-- and understand
the concepts.

Personally I believe that apart from talking of turbo-c versus gcc--
you (Rishi) need to dig deeper into understanding the architectural
concepts of systems and also about operating systems-- so that the
answers of this question will be self obvious.

I hope this helps.

Best Regards,

Nalin

> On Sun, Oct 16, 2011 at 8:12 PM, Narendra Sisodiya
> <[email protected]> wrote:
>>
>>
>> On Oct 16, 6:24 pm, Rishi <[email protected]> wrote:
>>> Hi,
>>>
>>> I am required to make a assignment in Computer Graphics using C++ in which I

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to