In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Fred wrote: I continue to experience problems getting a perfectly well behaved PASM program to operate correctly under SASM. The "Eric_1" code here is a re-arrangement of the original PASM code. Items have been moved and renamed to accomodate SASM. It is heavily cannibalized and many sections are "commented out' the result of trouble shooting. I expect what is left to clear RA,RB & RC (without defining them), set RB.3 low & latch-up in the loop 'Teste'. An LED connected between +5V and RB3 is the indicator. There is also a rather long data table imported as RETW's with an 'INCLUDE' statement. A review of the assembled code shows ths to be as expected. I test this by compiling, then driving it with the sxKey clock. I pull down the clock and repeatedly click on 'reset'. I expect the light to light each time. The results are: If the 'INCLUDE' statement is commented out, the light lights... every time. If the 'INCLUDE' statement is included, the light lights sometimes. Sometimes not. Sometimes it flickers randomly and goes out. Sometimes it flickers randomly and stays on. I am doing something fundamental incorrectly and I hope some one of you out there can point this out to me. Thanks, Fred Ornellas goes out. ... every time. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=87945 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)