That code sets AH=12h, AL=02h, BH=03h, BL=01h, right?
From the comments, it seems to be calling Int 10/AH=12h/BL=30h, listed here http://www.ctyme.com/intr/rb-0167.htm
Does anyone know what's going on in this code? Is there some funky bios thing going on or am I misunderstanding something?
>>4
I don't see what's confusing about that. The only thing that's unclear to me is why they didn't just mov bl, 1 - setting bh to 3 doesn't appear to accomplish anything.
>>4
And yeah, this is a funky BIOS thing. Calling int 10h like that code is doing will initialize the VGA adapter to a known state so you can write stuff to the screen without loading a real video driver.
The only other approach that is more or less guaranteed to work on every PC in the world is to bang on the VGA registers directly. It takes more code, but it's faster and potentially more reliable than relying on the BIOS.
It's probably a bug, one that doesn't have much effect. The default is usually 720x400 80x25 mode anyway.
The e/b/inElpin VGABIOS code I have doesn't implement that function. At first I thought it might be vendor-specific; you could try checking MSVPC's BIOS to see if it was added for that environmnet.
>>14
You work for one of maybe six companies in the world that actually cares enough to pay for a license, you work for SillyTutu, the sources leaked and you found them, you paid for a license.
>LE LELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
>LE MEME FACE WHEN
>LE MEME FACE WHEN
>LEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
>EGIN!
>EGINGIN!!!!
>EGINGINGWIM!!!!!!!!!!!!!!!!!!!!!!!!
>MY LEL FACE WHEN LE /G/RO IS FUQIN EGIN
Now, in this case, we're declaring ShapeType to be a typedef'ed name of an anonymous enumeration. ShapeType is really just an integral type, and should only be used to declare variables which hold one of the values listed in the declaration (that is, one of kCircle, kRectangle, and kOblateSpheroid). You can assign a ShapeType variable another value by casting, though, so you have to be careful when reading enum values.
Name:
Anonymous2013-08-31 19:13
I found an annoying bug that happens when you move to the next floor. It stays loading forever.
Thankfully, because the game auto-saves every time you go to the next floor, you can try to load the game. It may require a few tries.