try bitwise and this is how it looks in PIC basic you will have to write something simmilar in asm. b1 = b0 & 0f 'mask lower bits b2 = b0 & f0 'mask upper bits B2 = b2 >> 4 'shift upper bits right 4 places then you have the 2 digit number stored in b0 split into two variables b1, and b2 so now you can just display b1 on the first digit and b2 on the second digit of your display. hope that helps a little. sorry im still learning asm so thats all I can tell you right now. >Hi, > >Can anyone give me an idea how to separate the digits from a two digit >number so they can be displayed on two 7 segment LED's. > >Thanks, >Stewart Pye >