makefile for disassembling/reassembling ROM images
This commit is contained in:
parent
e1fb6ea2db
commit
3518ffa882
1 changed files with 23 additions and 0 deletions
23
devices/pc/bios/compaq/deskpro386/makefile
Normal file
23
devices/pc/bios/compaq/deskpro386/makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# For anyone who wants to experiment with reverse-engineering Compaq DeskPro 386 BIOS
|
||||
# source code by disassembling one of the original DeskPro ROMs, here are the initial steps:
|
||||
#
|
||||
# 1) Regenerate an original ROM binary from one of the JSON-encoded ROM files
|
||||
# 2) Create ready-to-assemble code by feeding NDISASM output into the TextOut preprocessor
|
||||
#
|
||||
# @jeffpar
|
||||
# 06-Apr-2015
|
||||
#
|
||||
|
||||
all: test.rom
|
||||
|
||||
1988-01-28.rom: 1988-01-28.json
|
||||
node ../../../../../modules/filedump/bin/filedump --file=1988-01-28.json --output=1988-01-28.rom --format=rom
|
||||
|
||||
test.nasm: 1988-01-28.rom
|
||||
ndisasm -o0x8000 -se105h -se05ah -se6ffh -sf025h -sf8aah 1988-01-28.rom > test.nasm
|
||||
node ../../../../../modules/textout/bin/textout --file=test.nasm --nasm > temp.nasm
|
||||
mv temp.nasm test.nasm
|
||||
|
||||
test.rom: test.nasm
|
||||
nasm -f bin test.nasm -l test.lst -o test.rom
|
||||
Loading…
Reference in a new issue