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º...
tkx
5k3l3t0r
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º...
tkx
5k3l3t0r
mov al, ; 3 = 4 - 1
mov ,al
mov ,al
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...
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...
Well,
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.
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.
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.
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...
tanks for your suport...
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
call
there are some differences depends on what format has function: stdcall or ccall, local or imported from dll, etc.
invoke fun,a,b,c -->
push c
push b
push a
call
there are some differences depends on what format has function: stdcall or ccall, local or imported from dll, etc.
ok Shoo, tkx for your time, i will read more docs based in asm without invok's, or dont use too many...
bye...
bye...
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.
Best thought of the day…
and now you know there are 50 WAYS to get one character from string
Have fun
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...
bye...
bye...
Best thought of the day…
and now you know there are 50 WAYS to get one character from string
Have fun