[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NumLock example



Hello
 
I would like to write an example program under RTL
and I would like to access the status of NumLock for example.
The status in dos is on a byt located on segment 0x0040 and offset 0x0017.
As a new to RTL, how I can get this status under RTL?
How I can read this byte at this address?
any idea would be helpful.
 
thank you in advance
 
Christos
 
 
 
^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~
 | Christos Tranoris (http://users.otenet.gr/~oggi/ )
 | Phd candidate
 | e-mail (1): tranoris@ee.upatras.gr
 | e-mail (2): oggi@otenet.gr
 | e-mail (3): tranoris@mycosmos.gr
 | e-mail (4): ctranoris@acm.org
 | Electronics & Computing Sector
 | Electrical & Computer Engineering Dept.
 | University of Patras - 26500 RIO, PATRA, GREECE
 |     "Don't worry,
 |             I'll think of something." - INDY
^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~^~v~