-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
build:
nasm -fbin src/boot.asm -o src/boot.bin
nasm -fbin src/game.asm -o src/game.bin
cat src/boot.bin src/game.bin > out/program.bin
qemu:
nasm -fbin src/boot.asm -o src/boot.bin
nasm -fbin src/game.asm -o src/game.bin
cat src/boot.bin src/game.bin > out/program.bin
qemu-system-i386 out/program.bin
debugServer:
nasm -fbin src/boot.asm -o src/boot.bin
nasm -fbin src/game.asm -o src/game.bin
cat src/boot.bin src/game.bin > out/program.bin
qemu-system-i386 -s -S out/program.bin
debugClient:
gdb -ex "target remote localhost:1234" -ex "set architecture i8086" -ex "set disassembly-flavor intel" -ex "b *0x7C00" -ex "b *0x8000" -ex "c"
hardware:
nasm -fbin src/boot.asm -o src/boot.bin
nasm -fbin src/game.asm -o src/game.bin
cat src/boot.bin src/game.bin > out/program.bin
sudo umount /dev/sdb
sudo dd if=out/program.bin of=/dev/sdb bs=5632 count=1
hardwareU:
nasm -fbin src/boot.asm -o src/boot.bin
nasm -fbin src/game.asm -o src/game.bin
cat src/boot.bin src/game.bin > out/program.bin
sudo dd if=out/program.bin of=/dev/sdb bs=5632 count=1
clean:
rm src/*.bin