Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Ok. I designed a block of code that displays what drive the os was booted from as the prompt. (ya know, the 'A' and the little arrow thing?) Everything's going nice, until I hit the code for drive K. I kneed to know what the next drive number is supposed to be. Heres some of the code:
What exactly about the letters L-Z makes this harder? It seems like you could just keep going the way you are.
Also, it would take much less space and code to just add dl to the ASCII value for A and print that, instead of creating strings for each possible drive letter prompt. Or at least make an array of strings to print and use dl as an offset - that's also constant time, and more portable.
*Edit: wait...I had know idea at the time that I could do that. It seems that every time I try to do something like this, I end up doing it the hardest way possible. But atleast it still works in the virtual machine.
"The n00b zone is for loading and unloading newbies only."
*Edit: wait...I had know idea at the time that I could do that. It seems that every time I try to do something like this, I end up doing it the hardest way possible. But atleast it still works in the virtual machine.
Yeah, that should work.
Imho the easiest way would be this, which just generates the prompt string on the fly: