MOV A, 40HMOV B, 42HMUL ABMOV DPTR, #2000HMOVX @DPTR, AINC DPTRMOV A, BMOVX @DPTR, ASJMP $END
mov R0,40hmov A,42hmul A,R0movx 2000H,Amovx 2001H,B
int i,j,k;int *pk;i=A;j=B;K=i*j;pk&=0xffff0000;pk|=0x2000;pk=k;