di2621.txt ;************************************************************************************************** ; LISTING 1 - CODE SEGMENT FOR 80XC51 ARCHITECTURE ; ; "Look-up table facilities but flipping," EDN, Nov 23, 2000, pg 168 ; http://www.ednmag.com/ednmag/reg/2000/11232000/designideas.htm#24di8 ; *************************************************************************************************** ; Load value into accumulator (hex AA) mov A, #10101010b ; Load lookup table address into index mov DPTR,#InvertTable ; Load "flipped" value into accumulator movc A,@A+DPTR ; Accumulator should now hold hex 55