Re: Question about jumps




randyhyde@xxxxxxxxxxxxx wrote:
So instead,
you've written code that reads a *character* from the input, shifts it
to the left, and prints a character to the output.

Actually, in nasm, unless you do [] around a variable; it is taken
as a pointer. So he does what Frank said: He simply takes the memory
pointer; doubles it, and then writes whatever is at that new memory
spot is...

This is somewhat different than masm... (well... kinda opposite. Masm
has that strange ptr thing doesnt it?) so I can see the confusion.

--Dragontamer

.



Relevant Pages

  • Re: Controlling Static Data and Memory Organization...If Possible...
    ... resides invokes the wrath of undefined behavior because you are ... different pages of memory, and for the physical location of those pages ... to do with what "exactly" a pointer is physically in your program ... character at an address that is 1 higher than the one before it. ...
    (comp.lang.c)
  • Re: about new problem
    ... reads a pointer value from cin and writes it to cout. ... without allocating any memory. ... Storing something in "a" without memory ... character array afterwards, though I can't really think of a good reason why ...
    (comp.lang.cpp)
  • Re: Need Help wit Programming Assignment strlen()
    ... > What is the memory allocation doing in here? ... > You already have a pointer to the beginning ... what do you need this dynamic allocated memory for? ... > before it points to a '\0' character and return that number ...
    (comp.lang.cpp)
  • Re: Compiler String Efficiency
    ... >characters) and then store the 10 character string in the allotted ... >memory, ... The variable (pointer to the ...
    (microsoft.public.vb.winapi)
  • Re: both specifying now, Khalid and Hamza pined the recent tents in search of current notion
    ... equally squeeze Hakeem and Annie's protestant draper. ... rain insights. ... Gawd, I'll project the character. ... it will apparently guide the memory. ...
    (sci.crypt)