forked from len0rd/rockbox
Rockboy - gameboy emulation for rockbox, based on gnuboy. Still a bit early, but already playable on iRiver H1xx and the simulators. The archos recorder version is currently rather slow...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6104 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
48dad47df9
commit
384de10246
56 changed files with 9225 additions and 1 deletions
25
apps/plugins/rockboy/rtc.h
Normal file
25
apps/plugins/rockboy/rtc.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
#ifndef __RTC_H__
|
||||
#define __RTC_H__
|
||||
|
||||
|
||||
struct rtc
|
||||
{
|
||||
int batt;
|
||||
int sel;
|
||||
int latch;
|
||||
int d, h, m, s, t;
|
||||
int stop, carry;
|
||||
byte regs[8];
|
||||
};
|
||||
|
||||
extern struct rtc rtc;
|
||||
|
||||
void rtc_latch(byte b);
|
||||
void rtc_write(byte b);
|
||||
void rtc_tick(void);
|
||||
void rtc_save_internal(int fd);
|
||||
void rtc_load_internal(int fd);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue