I’m using SDCC to develop code for a Cypress EzUSB on a win32 platform. How do you set the absolute address for where you would like to place assembly code in SDCC?  Here’s what I have tried:

 

voids foo(void){

    _asm

        .org 200h

        ;my code here

    _endasm

return;

}

 

This produces the error: “.org in REL area or directive / mnemonic error”

I’ve read the SDCC docs and dug through the archives, but never really figured it out.

 

Thanks,

Aaron McFarland

amcfarland@ist-traffic.com