Commit Graph

57 Commits

Author SHA1 Message Date
Juhani Krekelä 5129f3f3b4 Lower mouse sensitivity 2023-03-29 13:28:36 +03:00
Juhani Krekelä ceb7745b42 Exit with error from open_file if file is not found and asked to not create one 2023-03-29 12:21:13 +03:00
shikhin 544fb12af9 Check null-terminating byte in open_file 2023-03-26 20:07:53 +05:30
shikhin f4b0adc4da Add moving windows 2023-03-23 06:20:45 +05:30
shikhin 7367a4cf34 Separate out mouse sensitivity 2023-03-23 04:38:07 +05:30
Juhani Krekelä 6ebb889fcf Allow launching programs from the shell 2023-03-23 00:41:12 +02:00
Juhani Krekelä ebf106dcc4 Don't depend on dx being 0 in modify_sector 2023-03-23 00:07:12 +02:00
Juhani Krekelä ede350fd40 Remove a stray tab 2023-03-20 20:50:22 +02:00
Juhani Krekelä c16e9b2937 Document the latest hack 2023-03-20 20:48:46 +02:00
Juhani Krekelä 13c69db33d Add keyboard events 2023-03-20 20:46:29 +02:00
Juhani Krekelä 744da780f3 Implement mouse events 2023-03-20 20:18:49 +02:00
Juhani Krekelä ae17e6380f Separate entry points for initialization and WM events for programs 2023-03-20 18:33:27 +02:00
Juhani Krekelä f51b9458da Fix redraw handling 2023-03-20 18:23:11 +02:00
shikhin 1bb62d1887 Add rudimentary ls 2023-03-20 14:30:57 +05:30
shikhin c4dc87c8fd Unify the x/y handling in the mouse handler a bit more 2023-03-19 23:40:59 +05:30
shikhin 45b4f8f3e1 Consolidate mouse position in flip_mouse_cursor 2023-03-19 22:51:52 +05:30
shikhin 6f2d655bd4 ror direct to memory 2023-03-19 22:33:16 +05:30
Juhani Krekelä 56f7cbcfa6 Optimize mainloop by consolidating mouse position in bx 2023-03-19 22:54:14 +02:00
shikhin b38f9a663c Can now not create a file with open_file 2023-03-19 20:32:10 +05:30
Juhani Krekelä 5e5a540ce9 Add memory allocation map 2023-03-19 21:06:12 +02:00
shikhin b3df18bb04 Switch from read_sectors to modify_sectors; return dirent in open_file 2023-03-19 20:09:35 +05:30
Juhani Krekelä d725407c5b Add windows 2023-03-19 20:50:24 +02:00
Juhani Krekelä 878cc67a83 Extract globals as well as syscalls from the symbol map 2023-03-19 20:49:03 +02:00
shikhin 8178c7a715 Get rid of one (1) jump 2023-03-19 19:32:28 +05:30
shikhin e900a60d4a Fixed a bunch of bugs in mouse_handler; memoized mouse_column in main loop 2023-03-19 19:00:21 +05:30
Juhani Krekelä 5c3580e9b5 Get rid of syscall thunks 2023-03-19 19:28:30 +02:00
shikhin d675597120 Combine x and y handling in mouse_handler 2023-03-19 18:22:10 +05:30
shikhin 91c56547e5 Optimize 2 bytes away with partial bss zeroing 2023-03-19 16:58:09 +05:30
Juhani Krekelä ce07a23355 Remove now-unnecessary shift in draw_rect 2023-03-19 17:19:18 +02:00
Juhani Krekelä 6e4974de3f Document new requirement that rectangle height is at least 1 2023-03-19 17:18:55 +02:00
shikhin a6cf05c1ff Minor optimizations in drawing rects 2023-03-19 16:02:49 +05:30
Juhani Krekelä 651480c91e Implement SYS_DRAW_RECT 2023-03-19 16:23:30 +02:00
Juhani Krekelä 514cf5441f Move wallpaper loading to shell 2023-03-18 15:55:53 +02:00
Juhani Krekelä c4ab75fc54 Remove unnecessary segment register modification from modify_sector 2023-03-18 15:49:18 +02:00
Juhani Krekelä 9d3de7483e Rewrite mouse handler to use less code 2023-03-18 15:10:48 +02:00
Juhani Krekelä cb030ccf41 Don't pointlessly zero DS when it's already zero 2023-03-18 14:41:26 +02:00
Juhani Krekelä f465c642c4 Use 286 shifts and rotates 2023-03-18 14:31:35 +02:00
Juhani Krekelä 8e47898c7a Move stack to end of segment 2023-03-18 14:31:23 +02:00
Juhani Krekelä a2c1aaf6ec Hoist segment register modification out of drawing subroutines 2023-03-18 14:27:47 +02:00
Juhani Krekelä 8da69da9a2 Add a quick way to check the size of ponydos binary 2023-03-18 14:23:32 +02:00
Juhani Krekelä d258a1ad81 Fix typoe resb→resw with mouse_row 2023-03-18 14:23:07 +02:00
shikhin a110e1da1b Save some bytes 2023-03-18 12:12:18 +05:30
Juhani Krekelä f39f25a4c1 Start work on shell 2023-03-18 01:05:32 +02:00
Juhani Krekelä 56d22db6e0 Bump cpu level to 286 and use pusha/popa where possible 2023-03-16 19:22:59 +02:00
shikhin 565fff50b4 Don't assume things about ds/es 2023-03-16 21:22:41 +05:30
Juhani Krekelä c695688e3a Generate floppy image with a python script 2023-03-16 17:14:53 +02:00
shikhin 400f282725 Merge read/write to modify_sector 2023-03-16 16:12:22 +05:30
shikhin d6dc33f164 Begin work on filesystem support 2023-03-16 15:40:03 +05:30
Juhani Krekelä 9d2021cf1f Reset disk system on read error 2023-03-13 14:40:28 +02:00
Juhani Krekelä 8d1b473243 Remove unnecessary test code from wallpaper loading 2023-03-11 20:07:05 +02:00