hi, ppl
supose i have the number 687563 in mybuffer
and i need to pass to mybuffer2 just the 4º character (in this case the number 5)
how can i do this? to pass the first number i have used "lstrcpyn" and work fine but
i dont need the first i need the 4º...

Posted on 2007-08-29 05:05:20 by 5k3l3t0r
mov al, ; 3 = 4 - 1
mov ,al
Posted on 2007-08-29 05:09:33 by Shoo
tkx shoo, i will do that whay, but i apreciate if you spend a litle of your time with
me and explain this, normally i use api to do all jobs, and you simplify all with this...;)
it's very nice know how... a read many tuts, and in most cases the programmer use just one or tho api's the the rest of code is all like your example... can you share some knoledge with me?
bye and tkyou for your fast reply...
Posted on 2007-08-29 05:24:33 by 5k3l3t0r

it's not too complicated, is it?
The []-operator is used for references to memory, thus we directly copy the one character (equals one byte) from the source memory address to the destination named mybuffer2.

I guess, though, that it would be worthwile to read a proper ASM book to gain a sophisticated knowledge of the language. Just using APIs is not the point of the assembly language.
Posted on 2007-08-31 11:21:27 by Claus von der Burchard
do not treat assembly as just another HLL with different syntaxis of function call. the sense of assembly is direct usage of registers and CPU instructions with hope of getting speed/size or other profit. usage of "invokes" only possible, but then it is more reasonable to use HLL like C(++) etc.
Posted on 2007-09-03 03:09:30 by Shoo
hi all, tkx for your replyes, i'm very new in asm, and i make some litle projects to explore the language(with radasm)... in some dock's i see very "invokes" in others just "push, call, etc...) and i'm a little confuse... but i will learn how to...
tanks for your suport...
Posted on 2007-09-05 05:50:46 by 5k3l3t0r
invoke is a kind built-in macro (for masm) for comfortable writings function calls. while assembling it will be replaced with pushs/call:

invoke fun,a,b,c -->

push c
push b
push a

there are some differences depends on what format has function: stdcall or ccall, local or imported from dll, etc.

Posted on 2007-09-05 06:14:02 by Shoo
ok Shoo, tkx for your time, i will read more docs based in asm without invok's, or dont use too many...
Posted on 2007-09-05 06:25:33 by 5k3l3t0r
and for some reason you will be always force to use INVOKE or LEA which it really calls and if you don’t, some special coding that you may come upon may NEVER work without it.

This is true and you will see for yourself sooner or latter, regardless.

Other than that use INVOKE only when you have too or just to keep things short from time to time for your own convenient or something like that.

ok Shoo, tkx for your time, i will read more docs based in asm without invok's, or dont use too many...

Best thought of the day…

and now you know there are 50 WAYS to get one character from string

Have fun

Posted on 2007-09-07 00:20:04 by numan