Question: Micro-processing program. how do i program a stopwatch using easy68k.com? Assessment Question Programme a stopwatch timer. A display of minutes, seconds and tenths is presented

Micro-processing program. how do i program a stopwatch using easy68k.com?Micro-processing program. how do i program a stopwatch using easy68k.com? Assessment Question

Assessment Question Programme a stopwatch timer. A display of minutes, seconds and tenths is presented in the following format. mm:ss.s The display is initialised to zeroes, and a leading zero in the minutes is blanked. 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 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 ; 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 screern MOVE . B #SOD, DI MOVE #6, DO TRAP #15 : print carriage return BRA START repeat END START i last line of source Assessment Question Programme a stopwatch timer. A display of minutes, seconds and tenths is presented in the following format. mm:ss.s The display is initialised to zeroes, and a leading zero in the minutes is blanked. 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 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 ; 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 screern MOVE . B #SOD, DI MOVE #6, DO TRAP #15 : print carriage return BRA START repeat END START i 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!