www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/07/11:18:33

From: Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Q: Asm: self-modifying code
Date: Sat, 07 Dec 1996 05:26:27 -0800
Organization: Academic Computer Centre Utrecht, (ACCU)
Lines: 16
Message-ID: <32A97083.68A7@stud.warande.ruu.nl>
NNTP-Posting-Host: warande1078.warande.ruu.nl
Mime-Version: 1.0
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Apparently-To: djgpp AT delorie DOT com

Hello,

I want to convert a piece of self-modifying Intel asm to ATT asm,
but I don't know how to access and use the address of a label in ATT asm.
Specifically:

how does one change (for instance)

   mov [DWORD PTR @@label + 2], 6h
 @@label:
    add %eax, 5h
 
to ATT syntax? ( Above code fragment changes the 5h to a 6h ).

Thanks,
Elliott

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019