Pointers in NASM?

From: Josh Yeager (spamtrap_at_crayne.org)
Date: 03/29/05


Date: Mon, 28 Mar 2005 23:21:33 +0000 (UTC)

I'm trying to do a project for my assemble class, using NASM. When I
try to run a program with this line: "or BYTE PTR [eax], [upperMask]",
it gives me the error "comma or end of line expected".

Basically, eax contains a pointer to a character in a string, and I
want to convert it to uppercase by OR'ing it with 0x40.

But, my professor's lecture notes are horrible, and I can't find
anything on the web about what I'm trying to do.

How can I make it do what I want?

Thanks,
Josh



Relevant Pages

  • Re: Pointers in NASM?
    ... |>> I'm trying to do a project for my assemble class, using NASM. ... |>> it gives me the error "comma or end of line expected". ... | Or, if 'upperMask' is a literal, remove the from it. ...
    (comp.lang.asm.x86)
  • Re: Linux X demo
    ... Your last Nasm version was much more "beautiful" than the previous, IMO. ... I'm really impressed that you became a Nasm "power user" practically overnight! ... test eax, eax; ERROR ... Linus Torvalds ...
    (alt.lang.asm)
  • Re: Blueflops ate my X
    ... problems with my FASM assembled code, although I have managed to segfault FASM itself, a few times, and it is far too easy to get it to complain about being unable to generate an output file. ... mov eax, 4 ... xor eax, eax ... or assembling with Nasm, for that matter... ...
    (alt.lang.asm)
  • Re: NASM 0.98.39 vs. NASM 2.03.01 disassembly
    ... When fed back into NASM, all twelve forms will assemble correctly. ... instructions such as MOVZX, LAR, etc. ... Let's say you want "MOVZX EAX,AX" in 32-bit code. ... crud eax, 0, 2 ...
    (alt.lang.asm)
  • Re: The Advantage of Macros
    ... NASM will run on any processor architecture as long as the system ... so you have to write an assembler for the Intanium. ... loop: add.l r0,sum ... mov D$Sum 0, eax 1 ...
    (alt.lang.asm)