The problem is that it appears memory is getting corrupted or overwritten by the bios. It happens in around the ~(8100h-8600h) memory range I believe.
I believe this because if I delete some necessary code below it, then the cli works as expected, else my key to ascii map gets corrupted or the actual cli code gets corrupted and causes a triple fault (depending on how much code I have in the file upon compilation at a time). I thought we had up to 9000:FBFF until the extended bios data area? My code is only around 32kb starting at the regular 0:7C00 and the lower memory detection (ax = 0, int 12h) returns 63kb.
I'm using fasm and this happens in both bochs and vbox
Any help appreciated, hope I supplied enough information!
