flat assembler
Message board for the users of flat assembler.
Index
> Main > My first fasm program |
Author |
|
kandamun 28 Jul 2005, 12:02
I decided to brush up my rusty asm skills a few months ago.
When I tried to understand what happened to the NASM project, it apeared to be a big mess. Then I found FASM which reminds me to a86 with how quickly one can throw in some code and have a working program in seconds. So to get used with FASM I decided to write s.th. simple, and here is the result. I'll appreciate any comments, brick, beers etc. you throw at me. PS: Big thanks to Tomasz for the great product he gave us for free. PS2: My wishlist: for struc MyStruc { ... } - auto generated MyStruc.size constant - anonymous MyStruc objects - compile time macros w/ parameters like Code: %define HIWORD(a) ((a) shl 16) %define LOWORD(a) ((a) and 0xFFFF)
|
|||||||||||
28 Jul 2005, 12:02 |
|
Madis731 02 Aug 2005, 13:49
problem exiting MessageBox on Win98SE
I'll dig into this at home...got to go |
|||
02 Aug 2005, 13:49 |
|
Tomasz Grysztar 02 Aug 2005, 16:36
Quote:
And even if it was used only for structure declarations, it still wouldn't be possible, since the structures declared with "struc" may be of variable length. |
|||
02 Aug 2005, 16:36 |
|
kandamun 04 Aug 2005, 17:12
Madis731 wrote: problem exiting MessageBox on Win98SE It exits with ret - so the stack is broken. What is your processor? Quote:
Do you preffer to write every time Code: db (A_CONST shr 8) and 0xFF mov al, (A_CONST shr 8) and 0xFF |
|||
04 Aug 2005, 17:12 |
|
Madis731 05 Aug 2005, 19:29
Intel Pentium III E
Coppermine 600MHz. Mobility? - Its in a laptop and has speedstep. I think that stepping is important - 686 extended family is 0.0.cC0 (reported by the CPUz 1.29). I checked with OllyDbg and by hand...the rets pops and pushes are balanced and it just should exit with ExitProcess,0 -> then it will be alright. PS Though, it is alright in NT platforms |
|||
05 Aug 2005, 19:29 |
|
vid 06 Aug 2005, 08:52
Quote:
Do you preffer to write every time Code: db (A_CONST shr 8) and 0xFF mov al, (A_CONST shr 8) and 0xFF yup, since i already have written few larger projects in assembly and never really needed this often. and by the way, what you wrote isn't HIWORD, it's like: HIWORD(A) = (a shr 16) LOWORD(A) = (a and 0FFh) so it isn't lot more typing than typing LOWORD . and is too pretty self-explainative |
|||
06 Aug 2005, 08:52 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.