This commit is contained in:
dz 2016-09-30 23:10:35 +02:00
parent f3ca46d5b5
commit da88520bec
2 changed files with 3 additions and 3 deletions

View file

@ -1,12 +1,12 @@
all: mbr.img
mbr.img: code.asm Makefile
nasm -d DEBUG -f bin code.asm -o mbr.img
mbr.img: tetros.asm Makefile
nasm -d DEBUG -f bin tetros.asm -o mbr.img
@echo "size is" `stat -c "%s" mbr.img`
@if [ `stat -c "%s" mbr.img` -gt 446 ]; then \
bash -c 'echo -e "\e[91mOutput exceeded size of 446 bytes.\e[0m"'; \
rm -f mbr.img; exit 1; fi
nasm -f bin code.asm -o mbr.img
nasm -f bin tetros.asm -o mbr.img
run:
@qemu-system-i386 -drive file=mbr.img,index=0,media=disk,format=raw