In SX Microcontrollers, SX/B Compiler and SX-Key Tool, afabian wrote: Hello all, I'd like to start out by saying that I've having a ton of fun learning to program the SX. After years of programming, this makes me feel like I'm back to freshman year in college all over again. So much to learn about low-level programming! I've found something I'm stuck on though. The original goal was to get Jon William's MIDI Control application running. During the course of debugging my project, I found that the ISR is receiving valid bytes of data, but that the main program was blocking forever waiting for GetByte to return. As I started outputting the value of the various rx* variables at different points in the program, it appears to me that the variables are being lost between the assembly ISR and the BASIC code around it. In the attached file, there are three lines that i've inserted for testing, with comments like "INSTANCE 1: This works". All three are basically "MOV CtrlLo, rxHead" (to light up LEDs indicating the value of rxHead), but only the first instance works. The others show that rxHead = 0 always. Can anyone help me out? Thanks! Andrew Fabian ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=152738 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)