Question: PLEASE SHOW IN MINIIDE WITH COMMENTS ADDED TO EACH LINE. THANK YOU!! BASED ON THE GIVEN CODES, MAKE A CODE TO DISPLAY A SHIFTING LETTER

PLEASE SHOW IN MINIIDE WITH COMMENTS ADDED TO EACH LINE. THANK YOU!!BASED ON THE GIVEN CODES, MAKE A CODE TO DISPLAY A SHIFTINGLETTER "L" Lab 6: HCS12 Parallel Port: 7-Segment Displays Purpose This labPLEASE SHOW IN MINIIDE WITH COMMENTS ADDED TO EACH LINE. THANK YOU!!

BASED ON THE GIVEN CODES, MAKE A CODE TO DISPLAY A SHIFTING LETTER "L"

Lab 6: HCS12 Parallel Port: 7-Segment Displays Purpose This lab is to use the Dragon 12+USB Evaluation board to program codes to drive 7-segment display with the MiniIDE software tool. This lab is able to train students with the ability of operating the Dragon board, familiarizing with the parallel ports, and debugging assembly programs. Material and Equipment 1. Dragon 12+USB Evaluation board including a USB cable and an adaptor 2. MiniIDE software Lab Code Check the following two assembly programs, try to understand each command line, and add comments after each command line. ; This program is to shift a number on the 7-segment displays by ; changing the time delay. Check the time delay subroutine carefully. PTP DDRP ptj ddrj EQU EQU equ equ $0258 $025A $268 $26A PTB DDRB EQU EQU $01 $03 org $1500 movb #$FF, DDRB movb #$3F, DDRP movb #$FF, ddrj forever ldx #Displab movb #$FF, ptj loopi movb 1, x+, PTB movb 1,x+, PTP jsr delay cpx #Disptab+8 bne loopi bra forever DispTab dc.b dc.b dc.b dc.b $3f, $0e $35, $0d $35, $ Ob $3f, $07 delay ldab #50 out_loop ldy #20000 inner_loop psha pula dbne y, inner_loop dbne b, out_loop rts end ; Now, it is your turn to program. Please make a program, based on the ; existing ones above, to display a shifting letter "L". ; This program is to shift a number on the 7-segment displays by ; changing the time delay. Check the time delay subroutine carefully. PTP DDRP ptj ddrj EQU EQU equ equ $0258 $025A $268 $26A PTB DDRB EQU EQU $01 $03 org $1500 movb #$FF, DDRB movb #$3F, DDRP movb #$FF, ddrj forever ldx #Displab movb #$FF, ptj loopi movb 1, x+, PTB movb 1,x+, PTP jsr delay cpx #Disptab+8 bne loopi bra forever DispTab dc.b dc.b dc.b dc.b $3f, $0e $35, $0d $35, $ Ob $3f, $07 delay ldab #50 out_loop ldy #20000 inner_loop psha pula dbne y, inner_loop dbne b, out_loop rts end ; Now, it is your turn to program. Please make a program, based on the ; existing ones above, to display a shifting letter "L". Lab 6: HCS12 Parallel Port: 7-Segment Displays Purpose This lab is to use the Dragon 12+USB Evaluation board to program codes to drive 7-segment display with the MiniIDE software tool. This lab is able to train students with the ability of operating the Dragon board, familiarizing with the parallel ports, and debugging assembly programs. Material and Equipment 1. Dragon 12+USB Evaluation board including a USB cable and an adaptor 2. MiniIDE software Lab Code Check the following two assembly programs, try to understand each command line, and add comments after each command line. ; This program is to shift a number on the 7-segment displays by ; changing the time delay. Check the time delay subroutine carefully. PTP DDRP ptj ddrj EQU EQU equ equ $0258 $025A $268 $26A PTB DDRB EQU EQU $01 $03 org $1500 movb #$FF, DDRB movb #$3F, DDRP movb #$FF, ddrj forever ldx #Displab movb #$FF, ptj loopi movb 1, x+, PTB movb 1,x+, PTP jsr delay cpx #Disptab+8 bne loopi bra forever DispTab dc.b dc.b dc.b dc.b $3f, $0e $35, $0d $35, $ Ob $3f, $07 delay ldab #50 out_loop ldy #20000 inner_loop psha pula dbne y, inner_loop dbne b, out_loop rts end ; Now, it is your turn to program. Please make a program, based on the ; existing ones above, to display a shifting letter "L". ; This program is to shift a number on the 7-segment displays by ; changing the time delay. Check the time delay subroutine carefully. PTP DDRP ptj ddrj EQU EQU equ equ $0258 $025A $268 $26A PTB DDRB EQU EQU $01 $03 org $1500 movb #$FF, DDRB movb #$3F, DDRP movb #$FF, ddrj forever ldx #Displab movb #$FF, ptj loopi movb 1, x+, PTB movb 1,x+, PTP jsr delay cpx #Disptab+8 bne loopi bra forever DispTab dc.b dc.b dc.b dc.b $3f, $0e $35, $0d $35, $ Ob $3f, $07 delay ldab #50 out_loop ldy #20000 inner_loop psha pula dbne y, inner_loop dbne b, out_loop rts end ; Now, it is your turn to program. Please make a program, based on the ; existing ones above, to display a shifting letter "L

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!