On 6/16/2013 1:42 AM, John Wilson wrote:
  On Sat, Jun 15, 2013 at 10:35:56PM -0500, Jim Brain
wrote:
  I'm trying to add XT KB support to a project
here, and I am having
 trouble sorting out a few scan codes.  A response over at the VC
 Forum notes I should grab these two references, so I am wondering if
 anyone has a link or soft copy. 
 Probably making an ass of myself (I've done
several keyboard drivers in SW but
 have never hacked the HW protocol), but why wouldn't \ be 2Bh?  That's what
 it looks like to software (on a PC or XT, or on an AT/later with translation
 enabled), and it's what the table on page 1-77 of the PC Tech Ref 2.02 says
 (I have the original manual but nothing machine-readable, sorry). 
I could go for
2b, but chuck's mapping is not 2b (could not resist :-)
His comment:
"There was a lot of cut and try--the amount of bad information out there
is staggering.  Ultimately, I used the 5170 techref KB section as a
reference, along with the 5150 tecref.   IBM tends to get their
documentation right.
You'd better believe that I got the backslash mapping right for a
machine that pretty much runs DOS only!"
And he has it as 2a. (42)
If I had an XT here (or knew someone handy with AVRs with an XT that
could test), I'd just test it that way...
(I thought sure the SLT/286 was an XT KB, but it's AT, and my CBM colt
is AT as well...)
Jim
--
Jim Brain
brain at 
jbrain.com
www.jbrain.com