Skip to main content

Timeline for Very simple OS in Assembly

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Nov 21, 2020 at 18:01 comment added 1201ProgramAlarm The BIOS will have set up a stack, but it might not be very large (the original IBM PC used 256 bytes at the end of the Interrupt Vector Table). So while you can get away without setting up your own stack here, you cannot rely on using it for very long.
Nov 21, 2020 at 17:47 comment added Lev M. @SepRoland the OP asked how to make the code shorter, I interpreted it as "do the same thing with less instructions". I don't claim this code to be good in any way. Regarding the int instruction, I may have forgoten some some details as it has been a long time since I touched on assembly... So to be clear: will my proposed code result in some undefined behavior when int 10h is called due to stack registers being in unknown state?
Nov 21, 2020 at 17:20 comment added Sep Roland I see the benefit from not spending instructions on creating a stack but why avoid using a stack? The int 10h already uses the stack and so can call print_string.
Nov 20, 2020 at 17:52 history answered Lev M. CC BY-SA 4.0