mu/bochsrc

16 lines
453 B
Plaintext
Raw Normal View History

7684 - baremetal will have no mouse I spent a week on trying to support it, and I am now past the five stages of grief. -- Important things I read https://web.archive.org/web/20040604041507/http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/keyboard/atkeyboard.html https://web.archive.org/web/20040604043149/http://panda.cs.ndsu.nodak.edu/~achapwes/PICmicro/mouse/mouse.html https://wiki.osdev.org/index.php?title=Mouse_Input&oldid=23086#Waiting_to_Send_Bytes_to_Port_0x60_and_0x64 says command 0xa8 is optional SaniK: https://forum.osdev.org/viewtopic.php?t=10247 recommends command 0xa8 before setting Compaq Status byte Setting Compaq status byte before 0xa8: https://forum.osdev.org/viewtopic.php?f=1&t=19873 This thread also suggests that keeping reads from keyboard vs mouse straight is non-trivial. -- Where I got stuck Following SaniK's recipe doesn't seem to work. It seems like not sending the 0xa8 command gets us a little closer. I saw the mouse handler trigger, but it seems to not actually happen in response to mouse events (vector 0x74 in the interrupt descriptor table). -- Other options that may be worth considering USB mouse Serial mouse Implementing a PS/2 handler in SubX would require somehow referring to SubX labels in this file It seems clear that a mouse driver is complex enough to need a higher-level language than just hex bytes. But it's _not_ clear how to _explain_ a mouse driver. There's just a lot of random rules, historical anecdotes, just-so stories and sheer black magic here. I'm going to try to do without it all. Mu will be a keyboard-only computer for the foreseeable future.
2021-02-03 17:49:40 +00:00
# Configuration for the Bochs x86 CPU emulator to run baremetal Mu programs
2021-03-15 04:41:47 +00:00
# See boot.subx for more details.
2021-02-11 07:51:27 +00:00
#
# Installing Bochs:
# On Mac OS:
# brew install bochs
# On Ubuntu Linux 20.04:
# sudo apt install bochs bochs-sdl bochsbios vgabios
display_library: sdl2
2021-05-14 19:56:58 +00:00
ata0-master: type=disk, path="code.img", mode=flat, cylinders=20, heads=16, spt=63 # 512 bytes per sector = almost 10MB
boot: disk
2021-03-24 04:14:12 +00:00
mouse: enabled=1, toggle=ctrl+f10
log: -