Chuck(G)
25k Member
No specific advice, it's just a matter of table lookup. It's all in the file XTTRANS.INC, in PS/2 scan code order. Each RETLW instruction in the table takes as an operand the scan code of the XT keyboard. The XT technical reference will make things a bit easier to figure out, assuming that you have the PS/2 scan codes already at your fingertips.
I used the gpasm assembler from the GP Utils
I used the gpasm assembler from the GP Utils