Commit Graph

12 Commits

Author SHA1 Message Date
Juhani Krekelä d4c15687c8 Add option for 8-colour mode
Some BIOSs initialize the VGA card by default into a mode where the high
bit of background nybble signals that the cell should blink. The simple
way to avoid this is by restricting the background colours to the range
0…7. However, since our mouse cursor is implemented by swapping the
foreground and the background colours, we also need to restrict the
foreground colours to the range 0…7.
2023-05-11 22:02:18 +03:00
Juhani Krekelä 0b5fd0d84e Deallocate program memory only at end of event dispatch
Previously programs deallocated their memory before forwarding a
message. If the forwarded message made another program allocate, this
could cause the program code to be overwritten while it is still
running.
2023-03-29 13:24:28 +03:00
Juhani Krekelä 3f5d4ebd16 Fix typo that broke builds 2023-03-29 13:23:06 +03:00
Juhani Krekelä 8bea9d6120 Add stub WM_OPEN_FILE handler to hello.asm 2023-03-29 13:17:07 +03:00
Juhani Krekelä 3b9ee317b1 Move hello.asm initial window position one down 2023-03-27 14:47:25 +03:00
shikhin 5ffe87e467 Merge branch 'master' of https://ahti.space/git/nortti/ponydos 2023-03-26 04:23:22 +05:30
shikhin cdf0f77379 Add basic viewer 2023-03-26 04:23:02 +05:30
Juhani Krekelä 27a52e86e7 Don't clobber ax in event_click in hello.asm 2023-03-23 18:30:48 +02:00
Juhani Krekelä e9462804f5 Mark that event_click clobbers ax in hello.asm 2023-03-23 17:21:18 +02:00
Juhani Krekelä 59e9e647c1 Don't needlessly include debug routines in hello.asm 2023-03-23 13:55:51 +02:00
Juhani Krekelä f73f122385 Add example program hello.asm 2023-03-23 13:54:06 +02:00
Juhani Krekelä 6ebb889fcf Allow launching programs from the shell 2023-03-23 00:41:12 +02:00