From: Scott B. <br...@ri...> - 2003-06-23 02:07:18
|
Hello. I'd like to give all the setup code that's linked into my hex file a miss and jump (more or less) straight from the reset vector to my main routine. This seems like it would be a common request but I can't figure out how to do it. Right now, my hex file includes almost 400 bytes of: mov rb0r1,#81h ; 00c5 75 01 81 u.. mov rb0r2,#82h ; 00c8 75 02 82 u.. mov rb0r3,#83h ; 00cb 75 03 83 u.. mov rb0r4,#84h ; 00ce 75 04 84 u.. mov rb0r5,#85h ; 00d1 75 05 85 u.. mov rb0r6,#86h ; 00d4 75 06 86 u.. ... Why would anybody want to do this? More importantly, is there an easy way to turn it off? I like the reset values better anyway. :) Right now my entire program runs as an _sdcc_external_startup routine that never returns. I'd like to recover the 400 bytes of setup code since it never gets executed anyway. Other than this minor issue, sdcc has been terrific. What a pleasant change from the bloaty Windows IDEs! Thanks, - Scott -- Scott Bronson <br...@ri...> |