diff options
| author | Mikhail Osipov <mike.osipov@gmail.com> | 2019-10-04 20:22:32 +0300 |
|---|---|---|
| committer | Mikhail Osipov <mike.osipov@gmail.com> | 2019-10-04 20:22:32 +0300 |
| commit | 08739a70889a5eaffa1f662445076325b4d6df15 (patch) | |
| tree | c4927204197f08fb40fc35d767fdafa7ea1674dc | |
| parent | 2f90e851f14bb23046f40d9d90fefffce854939a (diff) | |
store resolution
| -rw-r--r-- | main.s | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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 |
