Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > QUICK, Pascal t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1076 of 1102
Post > Topic >>

QUICK, Pascal to C translation

by Andrew Wan <andwan0@[EMAIL PROTECTED] > Dec 28, 2007 at 02:57 AM

Please can Pascal/C gurrus help me to confirm this:

l := port[$60];
l = inp( 0x60 );

keys[l mod 128] := l < 128;
keys[l & 127] = (l < 128);

mem[$0040:$001a] := mem[$0040: $001c]; {Pascal}
pokeb(0x40, 0x1a, peekb(0x40, 0x1c)); // C

port[$20] := $20;
outp( 0x20, 0x20 );

---

Yes you probably figured it out. It's a new keyboard handler.




 2 Posts in Topic:
QUICK, Pascal to C translation
Andrew Wan <andwan0@[E  2007-12-28 02:57:12 
Re: QUICK, Pascal to C translation
Marco van de Voort <ma  2007-12-28 12:18:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue May 13 18:53:04 CDT 2008.