mirror of
https://github.com/gungwald/alarm-clock-6502.git
synced 2024-12-22 17:30:29 +00:00
Renamed alarmclock.c to alarmclk.c because it think it's cooler that way.
This commit is contained in:
parent
0af1b9b94b
commit
4cc7d11da5
26
alarmclock.c
26
alarmclock.c
@ -1,26 +0,0 @@
|
|||||||
#include <stdio.h> /* scanf */
|
|
||||||
#include <stdint.h> /* uint8_t */
|
|
||||||
|
|
||||||
#define CLOCK_FREQUENCY 1023000L
|
|
||||||
#define CYCLES_PER_NOOP 2
|
|
||||||
#define NOOPS_PER_SEC 511500
|
|
||||||
|
|
||||||
enum {
|
|
||||||
ANTE_MERIDIEM, POST_MERIDIEM
|
|
||||||
} meridiem_t;
|
|
||||||
|
|
||||||
uint8_t curr_hour;
|
|
||||||
uint8_t curr_min;
|
|
||||||
meridiem_t curr_meridiem;
|
|
||||||
|
|
||||||
uint8_t alarm_hour;
|
|
||||||
uint8_t alarm_min;
|
|
||||||
meridiem_t alarm_meridiem;
|
|
||||||
|
|
||||||
void main(void)
|
|
||||||
{
|
|
||||||
scanf("Current hour:%2ui", &curr_hour);
|
|
||||||
scanf("Current minute:%2ui", &curr_min);
|
|
||||||
scanf("Current AM/PM:%2s", &meridiem_input);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user