8051C ???? ??? - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

8051C ???? ???

Description:

Title: Decoupled Value Prediction on Trace Processors Last modified by: Document presentation format: Letter Paper (8.5x11 in) Company – PowerPoint PPT presentation

Number of Views:85
Avg rating:3.0/5.0
Slides: 15
Provided by: ackr
Category:
Tags: 8051c

less

Transcript and Presenter's Notes

Title: 8051C ???? ???


1
8051C ???? ???
  • ?????? ???????
  • ???

2
Keil?? ????? ?? ?
3
8051? C ?? ????? ????
4
PK51? ??? ?? ???? ??
5
PK51? ?? CONFIG.SYS ? AUTOEXEC.BAT ??? ??
6
Keil?? C???? ????? ?? ??
  • ???? ??? 2KB? ????.
  • ???? ??? 4000H ?? ???? ???? ???.
  • ????? ?? ??? ???? ???.
  • ??? ??? ??? ???? ???.

7
MS-DOS ??? ???? ???? ??
  • ? ? ???? ???? ?? ????? ????.
  • CgtQ XXX.ASM
  • CgtQ XXX.C
  • ? ????? ???? ????? ???? ???, ??, HEX ?? ?????
    ????.
  • CgtASM XXX
  • CgtC XXX
  • ? A51(C51), BL51, OH51? ?? ???? ??? ??.
  • ? ????? ???? ????? ???? HEX ??? OK-8051 ???
    ??????.
  • CgtDL51 XXX /1 /19200

8
???? ?- C01_1.c
  • include ltREG52.Hgt
  • define PPI_PORTA ((unsigned char xdata
    )0x1200)
  • void Delay(unsigned int ms) / time delay
    function /
  • unsigned int i, j
  • for(i 1 i lt ms i)
  • for(j 1 j lt 125 j)
  • main() / main function /
  • while(1)
  • PPI_PORTA PPI_PORTA 0x01
  • Delay(300)

9
??? ? ?? ?
  • ??? ? ??C\gt C C01_1C\gtDL51 C01_1
  • ????? ??? ???? ????? ??? ?? C01_1.LST? ??

10
??? ?? ?
  • stmt level source
  • 1 include ltREG52.Hgt
  • 2
  • 3 define PPI_PORTA ((unsigned
    char xdata )0x1200)
  • 4
  • 5 void Delay(unsigned int ms) / time
    delay function /
  • 6 unsigned int i, j
  • 7 1
  • 8 1 for(i 1 i lt ms i)
  • 9 1 for(j 1 j lt 125 j)
  • 10 1
  • 11
  • 12 main() / main function /
  • 13 while(1)
  • 14 1 PPI_PORTA PPI_PORTA 0x01
  • 15 2 Delay(300)
  • 16 2
  • 17 1
  • 18

11
??? ?? ?
  • FUNCTION _Delay (BEGIN)
  • ---- Variable 'ms' assigned to Register 'R6/R7'
    ----

  • SOURCE LINE 5

  • SOURCE LINE 6

  • SOURCE LINE 8
  • ---- Variable 'i' assigned to Register 'R4/R5'
    ----
  • 0000 7D01 MOV R5,01H
  • 0002 7C00 MOV R4,00H
  • 0004 ?C0001
  • 0004 D3 SETB C
  • 0005 ED MOV A,R5
  • 0006 9F SUBB A,R7
  • 0007 EC MOV A,R4
  • 0008 9E SUBB A,R6
  • 0009 5016 JNC ?C0007

12
??? ?? ?
  • SOURCE LINE 9
  • ---- Variable 'j' assigned to Register 'R2/R3'
    ----
  • 000B 7B01 MOV R3,01H
  • 000D 7A00 MOV R2,00H
  • 000F ?C0004
  • 000F 0B INC R3
  • 0010 BB0001 CJNE R3,00H,?C0011
  • 0013 0A INC R2
  • 0014 ?C0011
  • 0014 EB MOV A,R3
  • 0015 647E XRL A,07EH
  • 0017 4A ORL A,R2
  • 0018 70F5 JNZ ?C0004
  • 001A ?C0003
  • 001A 0D INC R5
  • 001B BD0001 CJNE R5,00H,?C0012

13
??? ?? ?
  • 001E 0C INC R4
  • 001F ?C0012
  • 001F 80E3 SJMP ?C0001

  • SOURCE LINE 10
  • 0021 ?C0007
  • 0021 22 RET
  • FUNCTION _Delay (END)
  • FUNCTION main (BEGIN)

  • SOURCE LINE 12

  • SOURCE LINE 13
  • 0000 ?C0008

  • SOURCE LINE 14
  • 0000 901200 MOV DPTR,01200H
  • 0003 E0 MOVX A,_at_DPTR

14
??? ?? ?
  • 0004 6401 XRL A,01H
  • 0006 F0 MOVX _at_DPTR,A

  • SOURCE LINE 15
  • 0007 7F2C MOV R7,02CH
  • 0009 7E01 MOV R6,01H
  • 000B 120000 R LCALL _Delay

  • SOURCE LINE 16
  • 000E 80F0 SJMP ?C0008

  • SOURCE LINE 17
  • 0010 22 RET
  • FUNCTION main (END)
Write a Comment
User Comments (0)
About PowerShow.com