flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Dody 25 Aug 2008, 01:05
can someone give any clue ?
|
|||
![]() |
|
asmhack 25 Aug 2008, 02:54
-i think you should post this topic in another section-
here is one simple method of course there are many more, but for the moment you can use that... hope you can assemble that, have fun ![]() Code: include 'win32ax.inc' _id db '10002154',0 ;your id _di rb 256 ;your buffer to store the reversed id (you can change the size of the buffer, current size can hold 255 bytes + the null terminating string byte, see above) .code go: invoke lstrlen,_id ;get the length of your id cmp eax,0 ;if length is zero or we have problems... jbe @@exit ;...then exit mov ecx,eax ;store the length in ecx add eax,_id ;eax = address of id + length of id = the pointer to the end of the id string dec eax ;length = length - 1 (we don't need the null terminating byte) ;now we have just to copy every byte from id to our buffer by starting reading from the end of the id mov esi,_di ;esi = pointer to the buffer @@copy: mov bl,byte[eax] ;bl = byte from _id (eax is the pointer to the id) mov byte[esi],bl ;store to the buffer (esi is the pointer to the buffer) inc esi ;increase pointer dec eax ;decrease pointer dec ecx ;decrease length cmp ecx,0 ;and check until we reach the start jnz @@copy ;if not then loop invoke MessageBox,0,_id,_id,0 ;display invoke MessageBox,0,_di,_di,0 @@exit: invoke ExitProcess,0 ;exit .end go |
|||
![]() |
|
LocoDelAssembly 25 Aug 2008, 03:08
Quote:
And have a patience of more than 4 minutes before re-asking ![]() |
|||
![]() |
|
Dody 25 Aug 2008, 07:58
allright thanks for the help , but i couldnt make that in the program " flat assembler" . when i click on RUN , it told there an Error , or in other word "File not found "
![]() _________________ Life is Short , lets hold hands |
|||
![]() |
|
Madis731 25 Aug 2008, 08:42
There's also an edit button
![]() |
|||
![]() |
|
revolution 25 Aug 2008, 11:27
Hmm, homework help again. We should have a special sub-forum for these.
Please please help to write my program so I don't have to do anything. I'm just too lazy to actually learn how to do it myself so you guys need to do it all for me. Thanks a bunch, you're all wonderful people. |
|||
![]() |
|
Dody 25 Aug 2008, 17:59
Buddy thanks for ur effort , yet im still trying to assemble what u wrote up , im useing slat assembler 1.67.27 ... Plz tell me the way to assemble that
Thnxxx again _________________ Life is Short , lets hold hands |
|||
![]() |
|
Dody 25 Aug 2008, 17:59
Flat Assembler 1.67.27
|
|||
![]() |
|
okasvi 25 Aug 2008, 20:22
Did you ever read fasm.pdf?
|
|||
![]() |
|
asmhack 25 Aug 2008, 20:45
dody, in your fasm directory there is a file called fasmw.ini
open it with notepad and add the following line at the end: Code: [environment] include=C:\fasmw\INCLUDE (include=your directory\INCLUDE) |
|||
![]() |
|
LocoDelAssembly 25 Aug 2008, 20:48
Another way of solving this homework could be implementing the intToStr in the simpler but wrong way
![]() |
|||
![]() |
|
Dody 25 Aug 2008, 21:13
well , i tried to add that into the Dictionary yet nothing was solved , I NEED QUICK HELP AS MY LABLE IMPLIESSSSS
![]() _________________ Life is Short , lets hold hands |
|||
![]() |
|
revolution 25 Aug 2008, 21:22
Dody: People don't take kindly to being rushed. If you have some urgent deadline that is your problem, not ours. If we seem less than enthusiastic to help you it is because you are rushing us and demanding we do your work for you. We also have our own deadlines and work to do.
I suggest you take a deep breath, relax, and have a look at some of the examples in the fasm download, read the manual to see how to get fasm running, then, after you can assemble an example, you can make your program and do the necessary testing. This is the normal learning process. You won't learn anything by simply taking other peoples work and passing it off as your own. |
|||
![]() |
|
Dody 26 Aug 2008, 02:46
ok ok am sorri then , i won;t be here next time
Thank u |
|||
![]() |
|
Madis731 26 Aug 2008, 06:34
Dody wrote: ok ok am sorri then , i won;t be here next time He didn't mean that, actually. Just that it seems you rushed in on this board and started asking urgent help to (what seems to be) homework. You are welcome to add content to this board and we usually help people. Its just polite to start in a more quieter manner Thank You and I hope you will be back! |
|||
![]() |
|
rCX 26 Aug 2008, 13:18
What OS do you want to make this program for?
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.