From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 4 Sep 2011 00:19:06 -0400 To: rminnich@gmail.com, 9fans@9fans.net Message-ID: <304f99e12d750d6a12c0b8155127a6ee@brasstown.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] simple acid question Topicbox-Message-UUID: 189dacf4-ead7-11e9-9d60-3106f5b1d025 On Sat Sep 3 19:12:01 EDT 2011, rminnich@gmail.com wrote: > I'm reading some code into an area of data and trying to run it. I'm > not clear on how to tell acid that this area of memory is now > executable code, such that commands such as asm() will work. > > I've tried a few iterations of map() but I'm clearly doing something > wrong ... has anyone done this? i'm not sure if you're just literally dumping code in or what, but something like acid: dump(0xdfffefb4, 4, "I") 0xdfffefb4: SHRB $0xff,BH 0xdfffefb7: FMOVW 0x0(AX),F0 0xdfffefb9: ADDB AL,0x0(AX) 0xdfffefbb: ADDB AL,0x0(AX) 0xdfffefbd: ADDB AL,0x0(AX) will bypass the fiddling with the executable that is causing you trouble. - erik