From: SourceForge.net <no...@so...> - 2012-07-17 11:27:11
|
Bugs item #3544864, was opened at 2012-07-16 18:56 Message generated for change (Comment added) made by rgwan You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3544864&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mcs51(8051) target Group: non bugs Status: Closed Resolution: Rejected Priority: 5 Private: No Submitted By: Zhi Yuan Wan (rgwan) Assigned to: Maarten Brock (maartenbrock) Summary: 8051 crtinitial has MOVX bug Initial Comment: Some 8051 mcu hasn't any ext bus.use "MOVX" may be RESET them. and crt is too big to fit into some low-price MCU(120B).So I fix it(20B). ---------------------------------------------------------------------- Comment By: Zhi Yuan Wan (rgwan) Date: 2012-07-17 04:27 Message: No,I mean,STC15F104 has some bug. Like,excute "MOVX" or "MOV __XPAGE",It can make it RESET. I don't worried about the CODE SIZE.'Cause it has 4KB ROM and 128B Ram. But it only has 8pins,5 i/o ports.So P2(XPAGE) has DISABLED.And ext. BUS has DISABLED. STC datasheet has been said "Any MOVX/Set unknown sfrs will reset the MCU". So,XPAGE/ext.BUS code in program start can make MCU reset,and can't move PC to main(). at this point,I fixup the CRT,port it can be used for STC15F100 series MCU. I 'm so worried my English grammer.Because I 'm a Chinese.and I just a high school student... Please don't laugh me,Thank you~ ---------------------------------------------------------------------- Comment By: Maarten Brock (maartenbrock) Date: 2012-07-17 01:47 Message: Thanks for the contribution, but... This is no bug. If the program does not use any xdata then those MOVX instructions will not be executed. And your modifications only introduce bugs and fix none. You are free to provide your own crtinit.asm when compiling but this will not be merged into the SDCC source tree. Further, if your MCU is so small that it can't handle 100 bytes extra then I wonder if you're not better off programming in assembly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3544864&group_id=599 |