First post, by BeginnerGuy
- Rank
- Oldbie
Helllooo once more,
I think I'm going to finally just open a thread for myself about my engine and game development and maybe some nice people will follow along with the issues I come across and maybe offer solutions instead of continually asking questions with a new thread, but for now.. one more. (Which subforum would be proper for my active game/engine development anyway?? )
Problem:
I've been changing my engine's temporal synchronization system over from using vertical retrace (vsync) to reprogramming the system timer (0x43 - 8253 control register) and now realize that if I try to test reprogramming it through a command prompt launched through WFW 3.11, it doesn't change at all. The only reason I'm even doing it this way is because I write all code on a linux box and compile it straight through the network using MS C/C++ on my 486 (networked using WFW)
Anyway, is there any place in memory I can look for a flag bit that will tell me whether or not windows is running? I'm guessing windows locks the CPU down into protected mode, a topic which I badly need a course on.
I used the dos command _outp to put the timer in mode 2 then two more _outp calls to write the low and hi bytes (in that order), which works fine in dos. Problem is, according to msdn for _outp:
"The functions return the data output. There is no error return. ". So I'm not sure how to error check and return an error doing this.
In the mean time i grabbed the book "Advanced M. S.-DOS Programming: The Microsoft Guide for Assembly Language and C. Programmers" hoping it will steer me in the right direction.
Sup. I like computers. Are you a computer?