Page 1 of 1

BIOS disassembly

Posted: Sat Apr 26, 2014 1:20 am
by nerdboy69
Can someone give me the INT 19h, INT 13h, INT 16h and INT 9 disassembled or tell me where I can find it?

Re: BIOS disassembly

Posted: Sat Apr 26, 2014 1:31 am
by Octocontrabass
Go to Appendix A. Everything you've asked for will be in there.

Re: BIOS disassembly

Posted: Mon Apr 28, 2014 3:37 pm
by turdus
Why don't you disassemble it by yourself?

Hint:
step 1: get the code's offset from IDT
step 2: ???
step 3: disassemble and profit!

It's very easy to do under DOS and saving memory to a file...

Re: BIOS disassembly

Posted: Tue Apr 29, 2014 12:02 am
by mateuszb
hint: "torrent store" for BIOS source code...

Re: BIOS disassembly

Posted: Tue Apr 29, 2014 7:53 am
by Bender
Why bother disassembling a BIOS when you can get the sources right away? (Legally) http://sourceforge.net/projects/superbios/
Adding BIOS Code inside an operating system sounds awful IMO, unless you aren't writing a BIOS or want to just learn how stuff is done at that level I don't think you should need to see a BIOS's source. And disassemblies are themselves awful, data can easily be messed up.
For example:

Code: Select all

Something like this:
db 'Good Day'
From the assembler's perspective is like:
47 6F 6F 64 20 44 61 79
Gets converted to (iirc)
inc DI
outsw
outsw
<some weird AND instruction here>
.....
And you're now confused if it was the code or data!
sortie should get the joke.

Re: BIOS disassembly

Posted: Tue Apr 29, 2014 3:24 pm
by turdus
Bender wrote:Why bother disassembling a BIOS when you can get the sources right away?
Because finding out on your own is fun. Specially when you have gotchas.
Why do you write an OS? Why don't you just compile a linux, it's source also available right away. Isn't it? :wink: