START:
MOV R1,#208
MOV DPTR,#DTAB
LOOP:
MOV A,#DATAH
MOVX @DPTR,A
MOV A,#DATAL
MOVX @DPTR,A
MOW A,@ A+DPTR
MOV DDPTR,#7FFFH
MOV DPTR,#7FFFH
MOV @DPTR,A
DJNZ R1,LOOP
SJMP START
RET
DTAB:
DB: 80,83,86,89,8D,90,93,96,
DB: 99,9C,9F,A2,A5,A8,AB,AE,
DB: B1,B4,B7,BA,BC,BF,C2,C5,C7, CA,CC,CF,D1,D4,D6,D8,
DB: DA,DD,DF,E1,E3,E5,E7,E9, EA,EC,EE,EF,F1,F2,F4,F5,
DB: F6,F7,F8,F9,FA,FB,FC,FD,FD,FE,FF,FF,FF,FF,FF,FF,
DB: FF,FF,FF,FF,FF,FF,FE,FD,FD,FC,FB,FA,F9,F8,F7,F6,
DB: F5,F4,F2,F1,EF,EE,EC,EA,E9,E7,E5,E3,E1,DF,DD,DA,
DB: D8,D6,D4,Dl,CF,CC,CA,C7,C5,C2,BF,BC,BA,B7,B4,B1,
DB: AE,AB,A8,A5,A2,9F,9C,99, 96,93,90,8D,89,86,83,80,
DB: 80,7C,79,76,72,6F,6C,69,66,63,60,5D,5A,57,55,51,
DB: 4E,4C,48,45,43,40,3 D,3A,38,35,33,30,2E,2B,29,27,
DB: 25,22,20,1E,1C,1A,18,16,15,13,11,10,0E,0D,0B,0A,
DB: 09,08,07,06,05,04,03,02,02,01,00,00,00,00,00,00,
DB: 00,00,00,00,00, 00,01,02,02,03,04,05,06,07,08,09,
DB: 0A,0B,0D,0E,10,11,13,15
END