Presentation is loading. Please wait.

Presentation is loading. Please wait.

Machine Code Source:.

Similar presentations


Presentation on theme: "Machine Code Source:."— Presentation transcript:

1 Machine Code Source:

2 Assembly instruction vs machine code ― example 1
Q2. (20%) [Machine code] The machine code of 8051 instructions can be found in the following websites: Please fill in missing instructions or machine code in the table below. Assembly instruction Machine code (in binary) MOV R2 (2 pts) , H (2 pts) MOV R3 (2 pts) , #12H (2 pts) GOBACK: NOP DJNZ R4,GOON JMP GOBACK GOON: INC @R1 (1 point per nibble) Source: EE3046-Fall exam - midterm (edsim51).doc

3 Assembly instruction vs machine code ― example 2
Q5. (20%) [Machine code] The machine code of 8051 instructions can be found in the following websites: Please fill in missing instructions or machine code in the table below. Assembly instruction Machine code (in binary) MOVX A , @DPTR ADDC A , #6CH GOBACK: MUL AB DJNZ R5,GOON SETB C JMP GOBACK GOON: CPL C A4H H DD 03 H D3 H FA H B3 H EE Spring - exam - midterm (edsim51) - Part I & II question & answer.docx

4 Instruction Addr. Binary Hex. GOBACK: MUL AB A4H DJNZ R5,GOON DDH 03H SET C D3H JMP GOBACK 80H FAH GOON: CPL C B3H

5

6

7

8

9

10


Download ppt "Machine Code Source:."

Similar presentations


Ads by Google