Question: Complete the state table below by carrying out these steps A. For the registers, show each value where it changes. Show the PC at the

 Complete the state table below by carrying out these steps A.

Complete the state table below by carrying out these steps A. For the registers, show each value where it changes. Show the PC at the end of the instruction (ready for the next instruction). B. Show 0, 1 or- for flags on each line, pay careful attention to the flags. Flags touched by each instruction can be looked up in any one of: Lecture notes part 6, the exam reference booklet (on the web site), or PIC18_InstructionSetSummary_2Pages.pdf (also on the web site). C. Show final values for all registers and the flags Symbols are defined by: ;; Constants section Val01: EQU 0x25 Val02: EQU OxA7 ;; Variables section PSECT udata_acs Var01: DS 1 // Var02: DS 1 State table: State Table: W $12 $0026 PC $0020 SP $00 0x00 $BB 0x01 $CC Ox02 $DD NOV Z C 1 0 0 1 Initial Values: MOVLW Val02 MOVWF Var02 MOVLW Val01 MOVWF Var01 MOVE Var02,W Final Values: Symbol values: Var01: 0x000, Var02: 0x001 Complete the state table below by carrying out these steps A. For the registers, show each value where it changes. Show the PC at the end of the instruction (ready for the next instruction). B. Show 0, 1 or- for flags on each line, pay careful attention to the flags. Flags touched by each instruction can be looked up in any one of: Lecture notes part 6, the exam reference booklet (on the web site), or PIC18_InstructionSetSummary_2Pages.pdf (also on the web site). C. Show final values for all registers and the flags Symbols are defined by: ;; Constants section Val01: EQU 0x25 Val02: EQU OxA7 ;; Variables section PSECT udata_acs Var01: DS 1 // Var02: DS 1 State table: State Table: W $12 $0026 PC $0020 SP $00 0x00 $BB 0x01 $CC Ox02 $DD NOV Z C 1 0 0 1 Initial Values: MOVLW Val02 MOVWF Var02 MOVLW Val01 MOVWF Var01 MOVE Var02,W Final Values: Symbol values: Var01: 0x000, Var02: 0x001

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!