mirror of
https://github.com/daniel-e/tetros.git
synced 2025-04-19 16:38:05 +02:00
update
This commit is contained in:
parent
f3ca46d5b5
commit
da88520bec
2 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue