BIOS disassembly

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.
Post Reply
nerdboy69
Posts: 17
Joined: Wed Apr 23, 2014 1:41 am

BIOS disassembly

Post 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?
Octocontrabass
Member
Member
Posts: 5604
Joined: Mon Mar 25, 2013 7:01 pm

Re: BIOS disassembly

Post by Octocontrabass »

Go to Appendix A. Everything you've asked for will be in there.
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: BIOS disassembly

Post 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...
mateuszb
Member
Member
Posts: 32
Joined: Sun Jan 16, 2011 1:27 am

Re: BIOS disassembly

Post by mateuszb »

hint: "torrent store" for BIOS source code...
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

Re: BIOS disassembly

Post 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.
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
User avatar
turdus
Member
Member
Posts: 496
Joined: Tue Feb 08, 2011 1:58 pm

Re: BIOS disassembly

Post 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:
Post Reply