In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jgjonola wrote: Guenther and everyone... I would in NO WAY be offended by programing tips. I am very new to this, and any help is greatly appreciated! I was about to reply to your first message Guenther that i had copied those couple lines from the compiled sx/b code, so ... well anyways :) I see you have all cleared up the mistakes I was making. I was not using a 16 bit index... I had tried the 16 bit index but then i was copying it wrong. Anyways here is what i came up with and it seems to work. [code] Main: bank COUNTS MOV idx,#0 MOV idx+1,#0 mov char,#LcdCls ;clear the screen call LCD_OUT Label_Message: mov idx, #tmsg & 255 mov idx+1,#tmsg >> 8 :DO MOV M,idx+1 ;move top 4 bits of tmsg into the m register mov W,idx ;move bottom 8 bits into the W register IREAD ;reads the char and pos w+m into W mov char, W ;moves the char at w into char CJE char,#0,@scroll ;done with the top line, do the bottom line now call @LCD_OUT ADD idx,#1 snc inc idx+1 JMP @:DO [/code] Paul, I was thinking about using a jump table, but this is going to be using more than 300 characters (eventually, i will just use an eeprom). And thanks for the pointers, they helped alot. Bean, Yea, you are right, duh on my part. I think i was just getting frustrated. (at least that's my story) Thanks! One more question, I can't find an answer to in the manuals... Does the line: [MOV idx+1, #tmsg >> 8] do 8 rotate rights? I am assuming that from the outcome, but I am not sure. I have your book Guenther, (and its the BEST) but I can't seem to find where something like that would be explained. I have looked at the MOV instruction and the >> but none seem to fit. Thanks all you SX god-like people, John Gjonola :) ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=84844#m85071 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)