Re: [WP34s] Not working anymore Message #5 Posted by Neil Hamilton (Ottawa) on 27 Dec 2011, 6:47 p.m., in response to message #4 by fhub
Quote:
Could you please stop trying to tell me what I should write and how I should write it?
Can't you imagine that everyone has it's own style?
Dial back your emotions and it will help all around. It is not "style" if my teenager says "Shut Up, Dawg!" to my mother. Such indiscriminate pleas to deities can offend a reasonable fraction of people.
Quote:
Now I've recompiled it (or better: tried to do it) with your new SVN 2086 build and without this '-lib' switch and now guess what I get: an error message "ERROR: Too many program steps encountered (> 922 words)."
With the '-lib' switch it compiles without error - strange, isn't it? ;-)
This is telling me that you probably have more than 922 words in your program. Is that correct? If so, then the assembler is doing exactly what it should and trapping the error. If you have fewer than 922 words in your program and this is occurring, then there is a bug in the assembler and we will attempt to track it down.
The reason it may have "worked" before was that the limit check had been modified (note the use of past tense) to use the wrong value -- a MUCH larger value than was legal. I recently discovered that this has been the case for a few weeks (since SVN 2062). If you used these previous versions and your jobs went through, chances are the output image was not strictly legal if you were exceeding the 922 limit.
Can you provide the log spit out by the assembler after you ran with '-lib' switch on? That that would be very helpful. For example, the lines similar to these:
// Opcode map source: /home/nhamilton/Downloads/wp34s/wp34s_svn/trunk/tools/wp34s.op
// Opcode SVN version: 2083
// WP 34s version: 30
// CRC16: E02F
// Running in V3 RAM-mode. RAM-mode max words: 922
// Total words: 37
// Total steps: 36
If your image is truly too large, you might have to assemble it with the LIB tool since that tool was designed to generate images for use with the flash. The flash has more space available than the RAM. As of now, the RAM is capable of holding 922 words and the flash 4094 words. You can look for these values at the top of the ./trunk/tools/wp34s.op file.
[It might be possible to assemble a monster program with the ASM tool using the '-lib' switch but this has not been tested in this exact manner as yet.]
Note that the emulator may behave differently from the actual calculator WRT to these numbers. So even if the emulator worked with these previous images, the actual calculator may not. Marcus will likely update you more completely on that matter.
Regards...
|