hello,
I'm already using system timer to do the interrupt, in order to show the date and time, i need to get it from BIOS date. please advice how to accomplish this, thanks!
hello,
I'm already using system timer to do the interrupt, in order to show the date and time, i need to get it from BIOS date. please advice how to accomplish this, thanks!
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Don't forget to say which Operating system / compiler / application type you're creating.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Well, I think you have to dig into assembly code in order to get the time from bios. Maybe int 0x1A is the one you are looking for.
Accessing BIOS from user level is restricted. It is sometimes a real headache trying to access to BIOS under pm OSes!
Not in DOS it isn't. See, this is why it's good to always list the target platform.Originally Posted by fnoyan
Quzah.
Hope is the first step on the road to disappointment.
I meant a pm OS. Maybe it is better to clearly write what I really want to meanOriginally Posted by quzah
>I meant a pm OS. Maybe it is better to clearly write what I really want to mean
That would help. Like pm OS ... what does that mean? One could guess.
It only works at night.
Quzah.
Hope is the first step on the road to disappointment.
And that would change things for us programmers how? (The only working at night thing I mean.)
>It only works at night.
Yes, thank you, I wonder if those outnumber the am OS?
swoopy, please tell me you are just joking and you really know what is a PMOS. . .
EDIT: Does knowing what PMOS is mean that I'm old?
Last edited by Kennedy; 09-29-2006 at 06:22 PM.
Thinking you must be old to know that might indicate you misinterpret the term. Seeing as nowadays we all use PMOSs, we (that is, the computer people) ought to know what they are.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
I have a rare am/pm OS.Originally Posted by swoopy
I bought it at a convenience store.
System: Debian Sid and FreeBSD 7.0. Both with GCC 4.3.
Useful resources:
comp.lang.c FAQ | C++ FQA Lite
>swoopy, please tell me you are just joking and you really know what is a PMOS. . .
Well, the problem is, that P and M could mean too many different things. Sure I can guess what it means, and I might guess right, but if say 50% of your audience (the audience being this message board) can't, why speak in gibberish? Why not type it out? PM OS is pretty ambiguous. For example take the P. Is that:
Privileged?
Partitioned?
Primitive?
Private?
Protected?
Protective?
Primary?
Physical?
Permanent?
Take the M. Is that:
Memory?
Mapped?
Mode?
Modular?
Last edited by swoopy; 09-29-2006 at 09:56 PM.
Hmm, I did not know they made such an animal. The guy who invented it must be a genius.Originally Posted by zx-1