0 Members and 1 Guest are viewing this topic.
Does anyone know how to get the system time on an 84+? I know how to get the battery state and free ram and some other stuff (thanks to wikiti) but i dont know how to get the time. Im assuming it will require Asm(hex).
.Input is pointer to 4-byte area to write the 32-bit time value (little endian)Asm(0E45EDA20CEDA20CEDA20CEDA2).Output is pointer+4, and time value is written to memory
ld c,$45iniinc ciniinc ciniinc cini
Code: [Select].Input is pointer to 4-byte area to write the 32-bit time value (little endian)Asm(0E45EDA20CEDA20CEDA20CEDA2).Output is pointer+4, and time value is written to memoryAssembly source here:Code: [Select]ld c,$45iniinc ciniinc ciniinc cini
Fix 0Fix 5Repeat getKey(15)sub(TR)DispGraphClrDraw //EDIT: This is also in there lolEndReturnLbl TR //time and RAM :)Asm(EFE542EF9247EF5641)->R //RAMAsm(0E45EDA20CEDA20CEDA20CEDA2)->T //time i guessText(0,56,R>DecText(70,56,T>Dec //Without >dec it only displays a 4, with it it diplays some weird long numberReturn
°AAsm(0E45EDA20CEDA20CEDA20CEDA2)
Im trying to do something like the Basic GetTimeStr(12)
QuoteIm trying to do something like the Basic GetTimeStr(12)What does that do? I don't remember how the BASIC time functions work.