C++ virtual methods

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.
znewsham
Posts: 9
Joined: Sat Sep 01, 2007 6:16 am

Post by znewsham »

OK...
I have found the problem, it wasnt even in my kerenel....It is in my bootloader....there is a problem with the nubmer 128, and possibly any number over that, does anyone know if NASM uses signed integers (i.e. numbers where the MSB is 1 are negative) thats the only thing I can think of, as testing if a num = 128 works, but testing if a 128 is > than 18 doesnt work, when in a byte (cl) but does when in a word (bx)...

so I fixed that problem by making my "get_location" method, which takes an LBA address and converts to CHS, take a word, instead of a byte....however..now it gets to sector 128 (or 129, not sure) and then cant seem to find the next cluster....sigh
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

do you use the correct comparisons for unsigned? (JG JL JGE JLE vs JA JB JAE JBE)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
znewsham
Posts: 9
Joined: Sat Sep 01, 2007 6:16 am

Post by znewsham »

I use the JG sets, I havent heard of the others, such as JA...
Post Reply