Tag: basilisk games
Neat utility for linux…
by admin on May.25, 2009, under Computers
Today after reading a bit of my assembler book from Peter Norton I googled and found a neat little utility for Linux. objdump, objdump as the manual page says, “displays information from object files”. But this neat tool does more then that, it will also dump the asm of almost any file. Just try it on a binary:
$ objdump -D ./eschalon_book_1_demo
./eschalon_book_1_demo: file format elf32-i386
Disassembly of section .interp:08048134 <.interp>:
8048134: 2f das
8048135: 6c insb (%dx),%es:(%edi)
8048136: 69 62 2f 6c 64 2d 6c imul $0x6c2d646c,0x2f(%edx),%esp
804813d: 69 6e 75 78 2e 73 6f imul $0x6f732e78,0×75(%esi),%ebp
8048144: 2e 32 00 xor %cs:(%eax),%alDisassembly of section .note.ABI-tag:
08048148 <.note.ABI-tag>:
8048148: 04 00 add $0×0,%al
804814a: 00 00 add %al,(%eax)
804814c: 10 00 adc %al,(%eax)
804814e: 00 00 add %al,(%eax)
8048150: 01 00 add %eax,(%eax)
8048152: 00 00 add %al,(%eax)
8048154: 47 inc %edi
I only used eschalon because it’s a fun game. Don’t worry, there isn’t much here to reconstruct any bit of the game, besides this is the demo which can be found on basilisk’s website.
Next I’m going to try my hand at assembly on linux, if not in a DOS emulator. I hear dosemu is a well respected emulator.