单片机原理与接口技术 (25).pdf
单片机原理与接口技术CPU284H8DHCY1AC1 OV1 P0 W WS SP P或或异异0 0C CA AY YC CV VO OP P1 10 01 11 11 1个个数数偶偶1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 01 11 11 11 1 0 0 1 1 1 1 0 0 0 0 0 0 1 1 +0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1HD8H48ULAWSPCCAADDADDCSUBBDAMULDIV CY00ACOVPCY1OV1AC1BCDP1A1ADD A+#data;AAdataRi ;AA(Ri)ADD A,direct;AA(direct)Rn ;AARnMOV A,#0F5H ;A=0F5HADD A,#0BH ;A=0F5+0BH=00HCY=1AC=1A=00Cy=17AC=134P=0A=0000 000010P=0XRAM 40H41HY42H43HZ=X+YRAM44H45H46HADDC A+#data;AAdataCYRi ;AA(Ri)CYADDC A,direct;AA(direct)CYRn ;AARnCYCYCY=0CY=11ADDSCLR CMOV A40HADD A42HMOV 44HAMOV A41HADDCA43HMOV 45HAMOV A#0ADDCA#0MOV 46HARET(Cy)A=C9HR2=54HCY=1SUBB AR2SUBB ASUBB ARn AA-Rn-CySUBB AdirectSUBB ARiSUBB A#dataCyOVACPA1 1 0 0 1 0 0 1201CY111 1 0 0 1 0 0 0R20 1 0 1 0 1 0 0840 1 1 1 0 1 0 0116:A=74H,CY=0,AC=0,OV=1,P=0CY=1201-1-84=116=74H74H/1/1DEC DPTR DEC DPL FFHINC00HCY00HDECFFHCY“INCDPTR”DPTRDPL=FFH“INC DPTR”DPL=00HDPH1CYDPTR=FFFFH“INCDPTR”DPTR=0000HCY MUL ABB8A8CY0OV=1FFH DIV AB AB ABCY0OV=10 MOV A,#66H ;A=66HMOV B,#77H ;B=77HMUL AB;=66H77H=2F6AHA=6AHB=2FHCY=02F6AH00FFHOV=1A=156(F6H)B=13(0DH)DIV AB A=B=Cy=OV=P=?156 13=18(12H)=12(0CH)12H0CH000BCDDA AADD ADA AADDC ADA ADA AA AC=1A309A=A+06H Cy=1A749A=A+60HBCDA0110 1001BBCD69BCDR20101 1000BBCD58BCD,ADD AR2DA A1 为为值值位位百百示示表表,1=YC的的后后行行执执AD整整调调6加加要要,1=CA但但,9于于小小1000然然虽虽整整调调6加加要要,9于于大大0011但但,0=YC然然虽虽1 11 1Y YC C)7 72 2(1 1 1 1 1 1 0 0 0 0 1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 11 1C CA AY YC C1 1 0 0 0 0 0 0 0 0 0 0 1 1 1 10 01 11 1)8 85 5(0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0 +)9 96 6(1 1 0 0 0 0 1 1 0 0 1 1 1 1 0 0A0010 0111B27BCDCY1127 启迪智慧思维创造精彩人生