mirror of
https://github.com/daniel-e/tetros.git
synced 2025-04-18 16:08:22 +02:00
update
This commit is contained in:
parent
49a3d7cf4d
commit
f0ebf20cd7
5 changed files with 3 additions and 3 deletions
2
Makefile
2
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:
|
||||
|
|
|
@ -9,7 +9,7 @@ This is how it looks like:
|
|||
|
||||

|
||||
|
||||
And this is how the machine code looks:
|
||||
And this the complete machine code:
|
||||
|
||||

|
||||
|
||||
|
|
BIN
code.png
BIN
code.png
Binary file not shown.
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 68 KiB |
|
@ -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
|
||||
|
|
BIN
tetros.img
BIN
tetros.img
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue