Since you made variable addr a word then you have to change your serin command to receive two bytes to be combined into one word. This means you have to Tx two bytes (SERIN is unable to receive word)
Al.Code:serin sein, 6, addr serin sein, 6, addr.byte0,addr.byte1




Bookmarks