diff --git a/Makefile b/Makefile index d8f070f..a8cce14 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ tetros.img: tetros.asm Makefile rm -f tetros.img; exit 1; fi nasm -f bin tetros.asm -o tetros.img -run: +run: tetros.img @qemu-system-i386 -drive file=tetros.img,index=0,media=disk,format=raw clean: diff --git a/README.md b/README.md index 5fb7748..704821a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ This is how it looks like: ![TetrOS - Tetris in 512 byte boot sector](https://github.com/daniel-e/mbr_tetris/blob/master/tetros_tetris_screenshot.png) -And this is how the machine code looks: +And this the complete machine code: ![TetrOS - Machine code](https://github.com/daniel-e/mbr_tetris/blob/master/code.png) diff --git a/code.png b/code.png index ce20326..b8617c3 100644 Binary files a/code.png and b/code.png differ diff --git a/tetros.asm b/tetros.asm index da44241..9dfbaef 100644 --- a/tetros.asm +++ b/tetros.asm @@ -63,7 +63,7 @@ ia: push cx inc dh ; increment row mov dl, field_left_col ; set column mov cx, field_width ; width of box - mov bx, 0x88 ; color + mov bx, 0x78 ; color call set_and_write cmp dh, 21 ; don't remove last line je ib ; if last line jump diff --git a/tetros.img b/tetros.img index d4572e5..b459285 100644 Binary files a/tetros.img and b/tetros.img differ