accessing C arrays from within ASM
From: Phil Carmody (thefatphil_demunged_at_yahoo.co.uk)
Date: 01/21/04
- Next message: Betov: "Re: The Case Against RosAsm (#2)"
- Previous message: Frank Kotler: "Re: The Case Against RosAsm (#2)"
- Next in thread: pacman128_at_hotmail.com: "Re: accessing C arrays from within ASM"
- Reply: pacman128_at_hotmail.com: "Re: accessing C arrays from within ASM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 21 Jan 2004 22:47:25 +0200
I've decided to biteteh bullet, and actually write (rather than
just tweak someone else's) asm - the first time in about 8 years,
so be gentle, please.
Equ's, res directives, and db's etc. I'm happy with, _however_
I can't see in Paul Carter's otherwise excellent tutorial how
to access C's global variables.
e.g. I've got in my C code:
signed long long bigvals[256];
unsigned char hashcounts[16384];
unsigned char hashrecords[16384][4];
What would I need to insert in my .nasm files to get access to those?
(the hashrecords above can be viewed as unsigned int [16384] if that
simplifies things, it's how I'll treat it anyway).
Feeling rather dim presently,
Phil
--
Unpatched IE vulnerability: window.open search injection
Description: cross-domain scripting, cookie/data/identity
theft, command execution
Reference: http://safecenter.net/liudieyu/WsFakeSrc/WsFakeSrc-Content.HTM
Exploit: http://safecenter.net/liudieyu/WsFakeSrc/WsFakeSrc-MyPage.htm
- Next message: Betov: "Re: The Case Against RosAsm (#2)"
- Previous message: Frank Kotler: "Re: The Case Against RosAsm (#2)"
- Next in thread: pacman128_at_hotmail.com: "Re: accessing C arrays from within ASM"
- Reply: pacman128_at_hotmail.com: "Re: accessing C arrays from within ASM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|