This commit is contained in:
dz 2016-10-01 19:12:20 +02:00
parent 49a3d7cf4d
commit f0ebf20cd7
5 changed files with 3 additions and 3 deletions

View file

@ -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:

View file

@ -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)

BIN
code.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Before After
Before After

View file

@ -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

Binary file not shown.