SegData
andlw b'00001111' ; |B0
movwf TEMP ; |B0
movlw high SegTable ; |B0
movwf PCLATH ; |B0
movlw low SegTable ; |B0
addwf TEMP,W ; |B0
skpnc ; |B0
incf PCLATH,f ; |B0
movwf PCL ; |B0
SegTable
dt b'00111111' ; "0" -|F|E|D|C|B|A
dt b'00000110' ; "1" -|-|-|-|C|B|-
dt b'01011011' ; "2" G|-|E|D|-|B|A
dt b'01001111' ; "3" G|-|-|D|C|B|A
dt b'01100110' ; "4" G|F|-|-|C|B|-
dt b'01101101' ; "5" G|F|-|D|C|-|A
dt b'01111101' ; "6" G|F|E|D|C|-|A
dt b'00000111' ; "7" -|-|-|-|C|B|A
dt b'01111111' ; "8" G|F|E|D|C|B|A
dt b'01101111' ; "9" G|F|-|D|C|B|A
dt b'00000000' ; " " -|-|-|-|-|-|- 'nul' char
dt b'01000000' ; "-" G|-|-|-|-|-|- 'minus'