Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void timedate(TimeDate *td)
- {
- struct regs r;
- assert(td!=NULL);
- r.pc = 0x703; // KERNEL
- r.y = 100; // GETTD
- _sys(&r); // Do Kernel Call.
- td->day = *(byte*) 0x77B;
- td->month = *(byte*) 0x77C;
- td->year = *(byte*) 0x77D;
- td->hours = *(byte*) 0x77E;
- td->minutes = *(byte*) 0x77F;
- td->seconds = *(byte*) 0x780;
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement