I decided, just for the fun of it, to try and make a 512 byte OS for a FAT12 floppy boot sector. I have the ability to type out a string at a 'prompt' and be able to use backspace to erase. However, in Bochs, the '\b' code doesn't wrap around lines. It'll work all the way to the beginning of the line, but the next one won't go to the end of the previous line. I've developed a workaround, but I was just wondering if this was standard behavior or if this is a mistake in Bochs? I haven't had a chance to test on RHW because I haven't a floppy or floppy drive to test with. If it's standard behavior, I'll just have to try a different workaround that will prevent me from needing to use the '\b' code.
Also, when int 10h function 0Eh scrolls the screen, is there a way to use a certain attribute for the new lines? Or perhaps there's a function (not 06h) I haven't found that does something similar? This doesn't matter so much, and is just a small style thing.
Edit: I just went with the different workaround, which works rather nicely and reduced the size of my code. Question 2 still stands, though.
int 10h function 0Eh
- Firestryke31
- Member
- Posts: 550
- Joined: Sat Nov 29, 2008 1:07 pm
- Location: Throw a dart at central Texas
- Contact:
int 10h function 0Eh
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
- Troy Martin
- Member
- Posts: 1686
- Joined: Fri Apr 18, 2008 4:40 pm
- Location: Langley, Vancouver, BC, Canada
- Contact:
Re: int 10h function 0Eh
Try setting BL to the foreground colour. I know it works in graphics modes like 12h and such but I don't know if it works in text modes.
- Firestryke31
- Member
- Posts: 550
- Joined: Sat Nov 29, 2008 1:07 pm
- Location: Throw a dart at central Texas
- Contact:
Re: int 10h function 0Eh
It doesn't seem to work in Bochs, and in all of the references I've looked at there's nothing saying that it supports setting attributes. The closest I've found is int 10h function 13h, but that would require a complete rewrite of my functions and I still don't know if it'll set the attributes for the empty space if it scrolls. I'll just stick with the attribute 0x07 unless I have some extra space, which is unlikely. It's not that important.
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?