/[gxemul]/trunk/src/devices/dev_pckbc.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_pckbc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 17 by dpavlin, Mon Oct 8 16:18:51 2007 UTC revision 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_pckbc.c,v 1.51 2005/09/27 23:55:44 debug Exp $   *  $Id: dev_pckbc.c,v 1.53 2005/10/26 14:37:04 debug Exp $
29   *     *  
30   *  Standard 8042 PC keyboard controller (and a 8242WB PS2 keyboard/mouse   *  Standard 8042 PC keyboard controller (and a 8242WB PS2 keyboard/mouse
31   *  controller), including the 8048 keyboard chip.   *  controller), including the 8048 keyboard chip.
# Line 314  static void ascii_to_pc_scancodes(int a, Line 314  static void ascii_to_pc_scancodes(int a,
314          if (a=='<')  {  a = ','; shift = 1; }          if (a=='<')  {  a = ','; shift = 1; }
315          if (a=='>')  {  a = '.'; shift = 1; }          if (a=='>')  {  a = '.'; shift = 1; }
316          if (a=='?')  {  a = '/'; shift = 1; }          if (a=='?')  {  a = '/'; shift = 1; }
317            if (a=='~')  {  a = '`'; shift = 1; }
318    
319          if (shift)          if (shift)
320                  pckbc_add_code(d, 0x2a, p);                  pckbc_add_code(d, 0x2a, p);
# Line 399  static void ascii_to_pc_scancodes(int a, Line 400  static void ascii_to_pc_scancodes(int a,
400    
401          if (a==';')     pckbc_add_code(d, 0x27, p);          if (a==';')     pckbc_add_code(d, 0x27, p);
402          if (a=='\'')    pckbc_add_code(d, 0x28, p);          if (a=='\'')    pckbc_add_code(d, 0x28, p);
403          if (a=='~')     pckbc_add_code(d, 0x29, p);          if (a=='`')     pckbc_add_code(d, 0x29, p);
404          if (a=='\\')    pckbc_add_code(d, 0x2b, p);          if (a=='\\')    pckbc_add_code(d, 0x2b, p);
405    
406          if (a=='z')     pckbc_add_code(d, 0x2c, p);          if (a=='z')     pckbc_add_code(d, 0x2c, p);
# Line 566  int dev_pckbc_access(struct cpu *cpu, st Line 567  int dev_pckbc_access(struct cpu *cpu, st
567          int i, port_nr = 0;          int i, port_nr = 0;
568          struct pckbc_data *d = extra;          struct pckbc_data *d = extra;
569    
570          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
571                    idata = memory_readmax64(cpu, data, len);
572    
573  #ifdef PCKBC_DEBUG  #ifdef PCKBC_DEBUG
574          if (writeflag == MEM_WRITE)          if (writeflag == MEM_WRITE)

Legend:
Removed from v.17  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26