Page 78 - Introduction to Microcontrollers Architecture, Programming, and Interfacing of The Motorola 68HC12
P. 78
PROBLEMS 55
22. The 32-bit binary number at location $822 is the number of ticks, where a tick
time is l/60th second, and zero represents Saturday midnight. Write a shortest program
to put the day-of-week in location $826, (military time) hour in $827, minute in $828,
seconds in $829, and tick-within-a-second in $82a.
23. Write a shortest program to write problem 22's 32-bit binary number tick count
into location $822, for input values written in its day-of-week, hour, minute, seconds,
and tick-within-a-second memory words (locations $826 to $82a), $82b to $832 is
scratch.