diff options
-rw-r--r-- | uisimulator/common/stubs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index 741d4bc977..ad334f5561 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -184,6 +184,18 @@ int rtc_read(int address) | |||
184 | 184 | ||
185 | case 2: /* minute */ | 185 | case 2: /* minute */ |
186 | return (teem->tm_min%10) | ((teem->tm_min/10) << 4); | 186 | return (teem->tm_min%10) | ((teem->tm_min/10) << 4); |
187 | |||
188 | case 1: /* seconds */ | ||
189 | return (teem->tm_sec%10) | ((teem->tm_sec/10) << 4); | ||
190 | |||
191 | case 7: /* year */ | ||
192 | return ((teem->tm_year-100)%10) | (((teem->tm_year-100)/10) << 4); | ||
193 | |||
194 | case 6: /* month */ | ||
195 | return ((teem->tm_mon+1)%10) | (((teem->tm_mon+1)/10) << 4); | ||
196 | |||
197 | case 5: /* day */ | ||
198 | return (teem->tm_mday%10) | ((teem->tm_mday/10) << 4); | ||
187 | } | 199 | } |
188 | 200 | ||
189 | return address ^ 0x55; | 201 | return address ^ 0x55; |