Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Using Dos for Real Time applications -> CLI (Developers)

posted by Damien, 09.01.2013, 13:12

> I think you can (some programms reprogram it speed for own purposes so
> disabling should be ok), if I remember there may be some issues with flopy
> drive and of course after you finis you should restore system time from
> CMOS RTC to keep it in sync.
>
> BTW on what project are you doing? What HW do you RT control?

I tried to do some changes in the interrupt table (in real mode C programming), it seems to work. At the end of the program I restore the original vector.

But then I have one more question : is it possible not to restore the original vector of an interrupt, without crashing the computer ?

What I understand is that while I am in my program, the new handler I created exists at some memory location. but when the program ends, the adress in the interrupt table still points to the same memory location, but this one is freed and then completed randomly by another program.
So, when the interrupt happens, the computer tries to execute this random code, and crash. That's exactly what I observed.

Am I right?

As you guess I am really a newbie is this interruption gymnastic, but how can I "lock" the memory location of my interrupt handler, so that no one will write on it after my program ends??

About the project I am working on... to sum up I interface with electrical units such as, for example, engine control unit. But also, I am interested in undestanding how does a computer works. That's why I investigate this kind of stuff:)

 

Complete thread:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum