[LinksOS CVS Commit]kernel/hw/mouse mouse.cpp,1.3,1.4
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-17 02:51:27
|
Update of /cvsroot/linksos/kernel/hw/mouse In directory router-internal.tossell.net:/tmp/cvs-serv21885 Modified Files: mouse.cpp Log Message: Title: ASM Use Changes: fixed asm calling syntax, so it's actually used Effects: reason: asm was being ignored, treated as a long string. a=kennyt Index: mouse.cpp =================================================================== RCS file: /cvsroot/linksos/kernel/hw/mouse/mouse.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mouse.cpp 17 Jan 2003 02:38:18 -0000 1.3 --- mouse.cpp 17 Jan 2003 02:51:16 -0000 1.4 *************** *** 4,25 **** { const int MAX_Y = 480; ! const int MAX_X = 640; ! { ! "asm mov ax, 1\n" // Set ax to show the mouse ! "asm int 0x33\n" // Call the mouse interrupt ! ! // Constrain mouse horizontal movement ! "asm mov ax, 7\n" ! "asm mov cx, 0\n" // Min range ! "asm mov dx, MAX_X-2\n" // Max range ! ! "asm int 0x33\n" // Call the mouse interrupt ! ! // Constrain mouse vertical movement ! "asm mov ax, 8\n" ! "asm mov cx, 0\n" // Min range ! "asm mov dx, MAX_Y-2\n" // Max range ! ! "asm int 0x33\n"; // Call the mouse interrupt ! } } --- 4,25 ---- { const int MAX_Y = 480; ! const int MAX_X = 640; ! asm volatile ( ! "mov %ax, 1\n" // Set ax to show the mouse ! "int 0x33\n" // Call the mouse interrupt ! ! // Constrain mouse horizontal movement ! "mov %ax, 7\n" ! "mov %cx, 0\n" // Min range ! "mov %dx, MAX_X-2\n" // Max range ! ! "int 0x33\n" // Call the mouse interrupt ! ! // Constrain mouse vertical movement ! "mov %ax, 8\n" ! "mov %cx, 0\n" // Min range ! "mov %dx, MAX_Y-2\n" // Max range ! ! "int 0x33\n" // Call the mouse interrupt ! ); } |