Amateur OS Dev - Hex monitor / Starting Editor
Making a simple hex monitor that runs a line of user input ascii as machine code
OS Dev Playlist: https://www.youtube.com/playlist?list=PLT7NbkyNWaqajsw8Xh7SP9KJwjfpP8TNX
Git repos:
https://git.sr.ht/~queso_fuego/quesos
https://github.com/queso-fuego/amateuros
Source code for this video:
https://git.sr.ht/~queso_fuego/amateur_os_video_sources/tree/master/item/14_hex_monitor_starting_editor
Notes:
- 'mov [di], al' & 'inc di' can be done better with opcode "stosb", it does the same thing. Also various small things add up over time, so may end up with a lot of small refactors for one of these videos.
- (Update ca. 2021): Putting testString or other variables at the top of a source does not work due to that line being executed when the file is loaded and called/jumped to. Putting something like a jmp statement to the logic part of the source, or to executable code like the "call resetTextScreen" line would work, as the jmp would be executed and jump over any code/data in between it and the jmp target.
----------------------------------------------------------------------------------------------------------------------------------------
Software used:
VMware Workstation Player - https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html
openBSD - https://www.openbsd.org/
bochs - http://bochs.sourceforge.net/
emacs - https://www.gnu.org/software/emacs/
fasm - https://flatassembler.net/
Twitch:
Like Streamers or games? Follow & catch me live - https://www.twitch.tv/queso_fuego
I plan on actually streaming more in the near future, got better webcam settings worked out and a schedule brewing for (hopefully) regular sessions.
Suggest content you would like to see live: programming, gaming, or otherwise, through youtube comments or by email. If twitch has a dm feature that
you can slide into, that works too, but I don't know if it does or not.
Stream archive channel- https://www.youtube.com/channel/UCxi12g3jdQMFiFTA5GVcGMA
Contact:
email - fuegoqueso@gmail.com
twitter - @Queso_Fuego
Thoughts/Notes/Suggestions/Other - Drop a message in the video comments or by email
Credits:
Music from https://incompetech.com:
"Your Call" by Kevin MacLeod (https://incompetech.com)
Licence: CC BY (http://creativecommons.org/licenses/by/4.0/)
The blue title tags:
#osdev #programming #assembly