Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

BIOS video routine question

Name: Anonymous 2012-11-28 16:18

I was looking at https://singularity.svn.codeplex.com/svn/base/boot/SingLdrPc/blentry16.asm
and I'm confused by the BlInitializeVideo function.
Particularly this call to the bios video routines:
        mov     ax, 1202h       ; LINES_400_CONFIGURATION
        mov     bx, 0301h       ; SELECT_SCAN_LINE
        int     10h

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?

Name: Anonymous 2012-11-28 16:59

That's the code that activates the Mossad spyware.

Name: Anonymous 2012-11-28 16:59

You are misunderstanding something.

Name: Anonymous 2012-11-28 17:21

>>3
Could you explain what I am misunderstanding?

Name: Anonymous 2012-11-28 18:26

Still waiting, Cudder.

Name: Anonymous 2012-11-29 0:21

>>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.

Name: >>6 2012-11-29 0:32

>>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.

Name: Anonymous 2012-11-29 3:21

>>6
Thanks for the reply.

It's confusing because I can't find any documentation listing a function that requires BL=1.

I also stepped through the interrupt in bochs, and the interrupt did absolutely nothing in that environment.

Name: Anonymous 2012-11-29 3:29

INTERRUPT MY ANUS

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-11-29 4:55

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.

Name: Anonymous 2012-11-29 7:32

dubs

Name: Anonymous 2012-11-29 11:20

>>10
e/b/inElpin
Oh you, Cudder-sama!

Name: Anonymous 2012-11-29 21:54

Elpin VGABIOS code I have

Cudder, how did you get that?

>>7,10,13 Same person, and we have been trolled constantly

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-11-30 6:25

>>13
Take a guess.

Name: Anonymous 2012-11-30 10:41

>>14
Marry me.

Name: Anonymous 2012-11-30 13:30

Put the cursor on the first page.

Name: Anonymous 2012-11-30 13:50

>>14
go back to /g/, toilet scrubber

Name: Anonymous 2012-11-30 14:15

Shouldn't it be AH = 0x02, AL = 0x12 since x86 is little-endian?

Name: Anonymous 2012-11-30 14:31

>>18
Applies only to how the values are stored in memory. AH holds the most-significant byte.

Name: Anonymous 2012-11-30 14:57

>>19
Okay, ignore me then.

Name: Anonymous 2012-11-30 20:41

>>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.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-12-01 3:47

>>21
Two of those (although one is a past tense) :)

Name: Anonymous 2012-12-01 4:29

>>22
CUDDER, MARRY ME!!!

Name: Cudder !MhMRSATORI !ndsNYm2fsg 2012-12-01 5:00

Sure, email me your resume at that email.

Name: Anonymous 2012-12-01 8:49

>>24
satori center
an education center   
for Horse related activities
and Life related activities


this your website cudder

Name: Anonymous 2012-12-01 10:53

>>22
:)
Terrible!

Name: Anonymous 2012-12-01 10:55

After a career with computers, my passion for horses turned into a career with horses
I wonder if Cudder-様 would like to see my horse.

Name: Anonymous 2012-12-01 11:42

>>23
Fuck you, Cudder is my waifu. I asked her out before she was cool.

>>24
That's not your domain, bitch. Marry me fucking when?

Name: Anonymous 2012-12-01 13:56

>>22
It's hilarious how dumb tripfags are. Fundamental law of 4chan: they will dox themselves eventually.

Name: Anonymous 2012-12-01 14:02

>>29
big deal, faggot

Name: Anonymous 2012-12-01 14:39

>>29
dox

hurr anon legion XD XD XD

go back to /b/ and come back when you're an adult

Name: Anonymous 2012-12-01 14:51

>>31
I've been here longer than you.

Name: Anonymous 2012-12-01 15:14

>>32
I'd wish people stopped replying with ``lel but i'm better than you XD'' to imageboard retards.

Name: Anonymous 2012-12-01 16:14

>>33
Why are people uncomfortable with the truth?

Name: Anonymous 2012-12-01 16:40

>LE LELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
>LE MEME FACE WHEN
>LE MEME FACE WHEN
>LEEEEEEEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
>EGIN!
>EGINGIN!!!!
>EGINGINGWIM!!!!!!!!!!!!!!!!!!!!!!!!
>MY LEL FACE WHEN LE /G/RO IS FUQIN EGIN

Name: Anonymous 2012-12-02 10:16

>>28
she

Name: Anonymous 2013-08-31 17:43


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: Anonymous 2013-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.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List