[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating a "cc" opcode from ASCII shell code

On Fri, 22 Jun 2007 03:58:24 MDT, Aaron Adams said:

> Maybe I am just tired....  My guess is that I must
> seed a register with an ASCII value and then
> and/xor/not it with approriate value.  I have tried
> using add/sub with no luck.

Yes, that's your best option at that point - you can't get a 0xcc
in there because of the 0z10-0z79, but you *can* start with a 0x40,
shift that left 1 to get a 0x80, and then OR that into a 0x4c.

(Getting a shift-left may be a problem - if so, try "multiply by 2"
or "add to itself" or similar alternatives.  Maybe loading a 16-bit
0x4020 and shifting it *right* 7 bits will work.  Play around. ;)

Attachment: pgpleXqAx0lbd.pgp
Description: PGP signature