summaryrefslogtreecommitdiff
path: root/src/emulator.rs
Commit message (Collapse)AuthorAge
* Expose window title of emulatorBen Bridle2024-07-30
| | | | | | The window title of the emulator can be set when constructing a new instance of the emulator. This is useful when a Bedrock program is baked into the emulator for distribution.
* Rework main loop timingsBen Bridle2024-07-30
| | | | | | | The program is vastly more efficient to run, consuming only 1.5% CPU instead of 13% during testing on Windows 10. Input events are handled four times as frequently now, which makes for smoother lines when drawing in Cobalt.
* Flush stream device before printing debug informationBen Bridle2024-06-01
| | | | | | Without this, text pushed to the stream device before a debug instruction would often display after the output for that debug instruction.
* Flush file contents each frame and when closing the fileBen Bridle2024-04-24
|
* Fix memory deviceBen Bridle2024-04-22
| | | | | | | | | | | There was confusion between the role of the page_limit variable in the memory device, where it was being used to mean both the absolute upper limit of pages that are allowed to be allocated, but also to mean the number of pages that the program would like to be allocated when needed. To fix this, the program is now just told the full number of pages that it is allowed to use, without first requiring that the program request a particular number of pages.
* Fix memory, input, screen, and file devicesBen Bridle2024-04-16
| | | | | | | The memory device was never being allocated any memory, the input device wasn't scrolling correctly, the screen device was rendering sprites incorrectly, and the device ID of the file device had not been changed over from 0xA to 0x9.
* Update devices to match new specificationsBen Bridle2024-04-16
|
* First commitv0.1.0Ben Bridle2023-12-24