flat assembler
Message board for the users of flat assembler.
Index
> Windows > [solved]MessageBox() making some troubles Goto page Previous 1, 2 |
Author |
|
bitRAKE 28 Aug 2020, 21:50
⇧ ⇧ ⇧ ⇧ ⇧
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
28 Aug 2020, 21:50 |
|
Overclick 28 Aug 2020, 22:55
ProMiNick wrote: that will increase code readability gracefully. |
|||
28 Aug 2020, 22:55 |
|
Overclick 28 Aug 2020, 23:04
movzx not good for AH,BH,CH,DH. Need to redesign again ))
Code: ... if size@param < 4 if param eq ah |param eq bh |param eq ch |param eq dh mov cl,param movsx rcx,cl else movsx rcx,param end if else if size@param = 4 movsxd rcx,param else if ~param eq rcx mov rcx,param end if end if ... Last edited by Overclick on 28 Aug 2020, 23:24; edited 1 time in total |
|||
28 Aug 2020, 23:04 |
|
bitRAKE 28 Aug 2020, 23:10
...because 16 byte registers are not enough.
I had one algorithm that really benefited from byte registers: https://github.com/bitRAKE/fasmg_playground/blob/master/win64/random/ca_prng.inc _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
28 Aug 2020, 23:10 |
|
Overclick 28 Aug 2020, 23:36
Quote:
Yeah, especially "macro proc" )) movsx solution will not working as param can be used with DWORD prefix etc. I'm tired to add new exceptions, xor is easiest way... Last edited by Overclick on 29 Aug 2020, 00:18; edited 1 time in total |
|||
28 Aug 2020, 23:36 |
|
ProMiNick 29 Aug 2020, 00:09
Overclick, I advising not to increase complexity of proc 64.
It is bit unhoniest (I self adapt 32 proc to support esp frame, and reoffset all esp based stuff according to instructions that affect esp - but before that I learned how to do that manualy, so was no needance in macro adaptation; I extend struct macro set for top level unions & reserve structs, I never used top level unions, I never used rstructs, I extend structs such way that I could define 32bit & 64bit variant by same set of struct members and specific sizers but I split struct includes for bitnesses; I extend interface to support inheritance - I used it, but it is not problem to display all interface methods without showing from which interface it was inherited). So, if something is applicable for thou. Go. But readers of thour code will suffer if thou will go far from official stntax. movzx(sx) - is undocumented behavior to cover it in proc.THAT IS NOT KNOWN FUNCTIONALITY!!! |
|||
29 Aug 2020, 00:09 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.