Hello When I assign a value from an array of structs to another variable and do some math on the same line, I get ot wrong values.
### wrong value ### ; .line 87; src/modules/app_ep1_out.c uart_tx_buffer_LEN = ep_bdt[2].Cnt-1; MOVFF (_ep_bdt + 9), (_ep_bdt + 9) DECF (_ep_bdt + 9), W, B BANKSEL _uart_tx_buffer_LEN MOVWF _uart_tx_buffer_LEN, B uart_tx_buffer_LEN => 216 ### oke value ### ; .line 87; src/modules/app_ep1_out.c uart_tx_buffer_LEN = ep_bdt[2].Cnt; MOVFF (_ep_bdt + 9), _uart_tx_buffer_LEN BANKSEL _uart_tx_buffer_LEN ; .line 88; src/modules/app_ep1_out.c uart_tx_buffer_LEN--; DECF _uart_tx_buffer_LEN, F, B uart_tx_buffer_LEN => 8 I'm really bad at assembler, but maye you see the error here? Or is it probably a stack overflow or something? I'm using a gputils and sdcc version i just updated. - Sdcc 3.3.2 #8953 (Feb 25 2014) (Linux) - gputils (eg. gpasm-1.2.0 #1000 (Feb 25 2014)) Thanks for your help. Regards, Oli ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user