No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
[code=asm]include /masm32/include/masm32rt.inc .data source db "this is the source",0 .data target db 255 dup(?) .code start: mov ecx,sizeof source-1 mov edi,offset target @@: mov al, byte ptr [source+ecx-1] stosb loop @b mov byte ptr[edi],0 print addr target,13,10 exit end start [/code] code for masm32, think u get the idea... greetz, …
hi, first i have to say that i don't know this assembler ( i guess it is for Linux ) but the lines [CODE=asm]#the size of the buffer movl $BUFFER_SIZE, %edx[/CODE] probably mean, that the read function only reads the next 500 bytes. The read pointer then automatically points to …
hi, check the macros that come with the masm package: /macros/macros.asm, there is one named 'issize' that does something similar...
[code=asm]include /masm32/include/masm32rt.inc ;compile with masm32 console link & compile .data x dd 1*2 y dd 3*4 .code start: print "x=" print str$(x),13,10 print "y=" print str$(y),13,10 invoke cmpmem,addr x,addr y,sizeof x .if (eax!=0) print "equal",13,10 .else print "not equal",13,10 .endif exit end start[/code] probably not what u expected ;-) but …
[QUOTE=Taker;602200]Hi everybody I have a couple of questions on assembly language. 1) what is assembly language? 2) what is assembly language used for in the programming world? 3) why is assembly language used? Thanks[/QUOTE] -> wikipedia ( + intelligent copy & paste for homework ;-) )
[code=asm]include /masm32/include/masm32rt.inc .data asci db 0,0 .code start: cls mov ebx,01 mov esi,10 ;cr lf after 10 chars @loop: mov byte ptr asci,bl cmp bl,13 ; unprintable chars je @f cmp bl,10 je @f cmp bl,09 je @f cmp bl,07 je @f cmp bl,08 je @f jmp @no_replace @@: mov …
The End.
kermitaner