Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,003 of 4,675    |
|    Frank Kotler to 2018peb5224@nospicedham.mnit.ac.in    |
|    Re: register pointer to memory    |
|    15 Jan 20 16:32:56    |
   
   From: fbkotler@nospicedham.myfairpoint.net   
      
   On 01/14/2020 03:47 AM, 2018peb5224@nospicedham.mnit.ac.in wrote:   
   > Hi,i am new in assembly coding. i want to do some memory address   
   manipulation for my project   
   > what i want is to save a memory address in a Register then done some   
   manipulation on that address like changing the address and so on, then get the   
   data from the newly updated address.   
   > So far i am not able to do it.   
   > i am using nasm.   
   >   
   >   
   >   
   > mov ebx,000000h   
   > add ebx,000230h   
   > mov eax,[ebx]   
   > push eax   
   > push .fmt   
   > call _printf   
   > ret   
   >   
   > .fmt db '%d',0x0d,0x0a,0   
   >   
   > Thanks   
   >   
      
   What platform? (Nasm will do a lot of things) Looks like Windows? What   
   happens? Exception? I don't think you have access to (virtual) memory at   
   that address. Try something in "section .data"...   
      
   {Sorry for the delay in your first post. This is a moderated NG and the   
   internet was down at my place. Should go faster from here on...)   
      
   Best,   
   Frank   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca