EMAIL: Fixed RTC display in summary line. ->v2.1.4.

This commit is contained in:
Bobbi Webber-Manners 2021-05-28 15:32:44 -04:00
parent a3099887a9
commit 097fe0adae
4 changed files with 16 additions and 2 deletions

View File

@ -67,6 +67,8 @@ nntp65.up.bin: w5100.c
nntp65.up.bin: IP65LIB = ../ip65/ip65.lib
nntp65.up.bin: A2_DRIVERLIB = ../drivers/ip65_apple2_uther2.lib
email.bin: gettime.s
date65.bin hfs65.bin tweet65.bin: CL65FLAGS = --start-addr 0x0C00 apple2enh-iobuf-0800.o
telnet65.com: ATARI_CFG = atrtelnet.cfg

View File

@ -301,6 +301,9 @@ void readconfigfile(void) {
}
#pragma code-name (pop)
/* Defined in gettime.s */
void gettime(void);
/*
* Convert date/time bytes into struct datetime format.
*/
@ -308,7 +311,7 @@ void readconfigfile(void) {
void readdatetime(struct datetime *dt) {
unsigned char *time = (unsigned char*)SYSTEMTIME;
unsigned int d, t;
__asm__("jsr $bf06"); // ProDOS DATETIME call: Updates vals at SYSTEMTIME
gettime();
d = time[0] + 256U * time[1];
t = time[2] + 256U * time[3];
if ((d | t) == 0) {

View File

@ -6,7 +6,7 @@
#include <stdint.h>
#define PROGNAME "emai//er v2.1.3"
#define PROGNAME "emai//er v2.1.4"
// Configuration params from EMAIL.CFG
char cfg_server[40]; // IP of POP3 server

9
apps/gettime.s Normal file
View File

@ -0,0 +1,9 @@
; Call ProDOS MLI GET_TIME call
; Bobbi 2021
.export _gettime
_gettime:
jsr $bf00 ; MLI
.byte $82 ; GET_TIME
rts