Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Geting & seting Bytes

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hallo,

how can I get and set bytes in NASM.
This on won't work correct...

mov eax,[byte edx] ;get byte of register edx
mov [byte ebx],eax ;set this byte to ebx

NASM set a DWORD in the memory.

And what about Words and DWords?
Please help.

Frank
 
just say

mov ah, [byte edx]
mov [byte ebx], ah

Try this.
Do not rejoice that ur code works.
it might be a special case of an error :-(
 
Cool frank,
why thank 3 times for a single answer ??
he he.. Problem with NET ??
Ok,
have a nice time with NASM.
U can probably learn "as" assembler.
An excellent 32-bit assembler, better than
NASM. The good thing is that "as" syntax is
more closer to the machine architecture.
It may help u to learn GCC inline assembly cool.
Once u learn to get things done with GCC and
"LD", u r the king !

EnSoy !

Sarnath

Do not rejoice that ur code works.
it might be a special case of an error :-(
 
Just 2 times!

I'm just interested using ASM, not C++.
I write a DLL in ASM for Profan² !!!

Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top