Question: Digital electronics programming Assessment Question Programme a stopwatch timer. A display of minutes, seconds and tenths is presented in the following format. mm:ss.s The disply

Digital electronics programming  Digital electronics programming Assessment Question Programme a stopwatch timer. A display

Assessment Question Programme a stopwatch timer. A display of minutes, seconds and tenths is presented in the following format. mm:ss.s The disply s nialind t When a key is pressed, the display begins to increment at tenth-second intervals. When the key is pressed again, it stops. The timer can measure any interval up to 10 minutes. To start you off, the following example will display seconds on the screen. ORG $1000 START: ; first instruction of program MOVE TRAP #8,DO #15 ; get time in hundredths of sec in D1 DIVU #100, DI ; time in seconds in D1 (RH) : remaining hundredths in D1 (LH) ; NB this will not work after about : 6 PM, at which time the number of i seconds exceeds what can be held in : 16 bits AND.L #$0000FFFF, DI ; set left hand half of D1 to zero MOVE TRAP #3,DO #15 ; print time in seconds on screen MOVE . B #SOD, DI MOVE #6, DO TRAP #15 : print carriage return BRA START repeat END START ; last line of source

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!