summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2019-10-04 20:22:32 +0300
committerMikhail Osipov <mike.osipov@gmail.com>2019-10-04 20:22:32 +0300
commit08739a70889a5eaffa1f662445076325b4d6df15 (patch)
treec4927204197f08fb40fc35d767fdafa7ea1674dc
parent2f90e851f14bb23046f40d9d90fefffce854939a (diff)
store resolution
-rw-r--r--main.s18
1 files changed, 10 insertions, 8 deletions
diff --git a/main.s b/main.s
index 3cf3cbe..241d3fc 100644
--- a/main.s
+++ b/main.s
@@ -176,13 +176,14 @@ _start:
jnz ioctl_error
movl %esp, %esi
- movl $res, %edi
- movl $2, %ecx
- rep movsl
+ movl $fbx, %edi
+ movsl
+ movl $fby, %edi
+ movsl
addl $200, %esp
- movl (res), %eax
- mull (res + 4)
+ movl (fbx), %eax
+ mull (fby)
shll $BPP_SHIFT, %eax
movl %eax, (fbsize)
@@ -754,14 +755,14 @@ drawcell:
pushal
movl (fbmem), %edi
movl 40(%esp), %eax
- mull (res)
+ mull (fbx)
addl 36(%esp), %eax
shll $BPP_SHIFT, %eax
addl %eax, %edi
movl $CELL_HEIGHT, %edx
mov_color_to_eax 44(%esp)
- movl (res), %ebx
+ movl (fbx), %ebx
shll $BPP_SHIFT, %ebx
.draw_line:
@@ -1027,7 +1028,8 @@ timespec:
.comm fbmem, 4
.comm fbsize, 4
.comm life_map, TOTAL_EXT
-.comm res, 8
+.comm fbx, 4
+.comm fby, 4
.comm curx, 4
.comm cury, 4
.comm event, 1