git.annexia.org
/
pyrit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add debug rule.
[pyrit.git]
/
Makefile
1
all: pyrit.img
2
3
pyrit.img: pyrit.asm
4
nasm -f bin -o $@ $<
5
6
clean:
7
rm -f *~ pyrit.img
8
9
run: pyrit.img
10
qemu-system-i386 -fda $<
11
12
runbochs: pyrit.img
13
bochs -q 'boot:a' 'floppya: 1_44=$<, status=inserted'
14
15
dis: pyrit.img
16
objdump -D -b binary -m i8086 $<
17
18
debug: pyrit.img
19
qemu-system-i386 -S -s -fda $< &
20
gdb -ex "target remote tcp::1234" \
21
-ex "set architecture i8086" \
22
-ex "break *0x7c00" \
23
-ex "cont"
24
25
.PHONY: run runbochs