Brad Fitzpatrick (brad) wrote,
Brad Fitzpatrick
brad

odd

passing arrays by references works now, but the address passed is off by 8 bytes it seems.
stoopid.
figure out why, or add instructions to correct address everytime? *sigh*
wish i had more time to do this all correctly.
hacks on hacks get hard to work with over time.

    // HACK/FIXME/SUCK: we're off by 8 bytes, for some reasons.
    Reg hack = rb->newReg();
    TheAssembler->moveImmediate(hack, 8);
    TheAssembler->binop(PLUS, base, base, hack);
    rb->freeReg(hack);
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment