hello, i m making one screen in which i m doing increment and decrement and shifting key operation but while doing so, i get '?' when i change the values and if 2 values are present then while changing the values other values shows '?' but if i proceed further i regain the lost values i m using pointer for increment, decrement,shift operation r my values getting lost?
thanx Andy, i think i hav solved the problem
i m using a routine which converts hex to bcd
i m using unsigned long int variable for the operation but for displaying i m using only 1st 4 digits of the variable
variable used for the operation is xdata and counter to separate the digits is unsigned char and internal memory, i mean to say i m using a for loop to separate each digit
so i made that counter as xdata, till now i didnot get the missing value problem on display but i m still looking for it
Where do you get hex data from? You have an input routine taking the characters '0'..'9','A'..'F' ('a'..'f') as input? Or do you have an array of bytes - each containing the values 0..15?
There is nothing haxadecimal about the integers your processor works with - they are just numbers. It isn't until you format them for printing that they may be formatted for base-10, base-16 or whatever you require.