ORG 0000H MOV 20H, #9 MOV DPTR, #BCDTAB MOV A, 20H MOVC A, @A+DPTR MOV 21H, A ANL A, #0fh ;逻辑与“按位逻辑与” SJMP $ BCDTAB: DB 00H, 01H, 04H, 09H, 16H, 25H DB 36H, 49H, 64H, 81H END