flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > A bad-looking mouse-processing pro |
Author |
|
BAiC 15 Jul 2015, 16:29
it's not that messy. I think you should give some space between the two blocks (one block for x and one for y).
why do you write "eax" (the first instruction) if your only going to read it back in for y a moment later? personally I'd just use a second register and read from it instead. Code: shr eax, 8 bt eax, 16+4;instead of 24+4 sbb ebx, ebx mov bl, ah add bx,[mousex] ;.. etc... I have my own mouse code but it provides a couple other features so it's not comparable. |
|||
15 Jul 2015, 16:29 |
|
l4m2 20 Jul 2015, 03:46
BAiC wrote: it's not that messy. I think you should give some space between the two blocks (one block for x and one for y). what if I let ebp equal to mousedup |
|||
20 Jul 2015, 03:46 |
|
BAiC 20 Jul 2015, 09:26
you can use any of registers you want. on a technical note (as far as my example is concerned) the second byte of EBP isn't addressable by instructions. only AH,BH,CH,DH are available for eax,ebx,ecx,edx (respectively).
Stefan |
|||
20 Jul 2015, 09:26 |
|
l4m2 23 Jul 2015, 15:32
aimed at smaller os
|
|||
23 Jul 2015, 15:32 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.