Posts: 117
Threads: 31
Joined: Sep 2008
Quote:
Display only showed "TIME"
Like in T, I, M, E? 4 characters? Here is what it looks like on my calc:
I do not show rX contents because it is the same time, just formatted as decimal fraction.
Posts: 117
Threads: 31
Joined: Sep 2008
Here is what my entire time program look like.
I tried to implement some functionality of HP01, which allowed for convenient timestamp arithmetic.
Instruction:
[c] start clock, exit clock to grab current time
XEQ EEX ;; load current time into X
XEQ + ;; add timecode to timecode
XEQ  ;; add timecode to timecode
XEQ * ;; multiply timecode in Y by number in X
XEQ / ;; divide timecode in Y by number in X
XEQ 00 ;; (internal routine) convert both X and Y from timecode to number
Nothing fancy, really.
LBL C
LBL'CLK'
LocR 001
CLx
TIME
x=?.00
BACK 003
STO.00
CL[alpha]
[alpha]TIME
VIEW[alpha]
PSE 09
BACK 009
LBL 00
[>]HR
x<> Y
[>]HR
x<> Y
RTN
LBL 34 ;; XEQ EEX = load current time
TIME
RTN
LBL 75 ;; XEQ + = add timecode to timecode
XEQ 00
+
[>]H.MS
RTN
LBL 65 ;; XEQ  = add timecode to timecode
XEQ 00

[>]H.MS
RTN
LBL 55 ;; XEQ * = multiply timecode in Y by number in X
x<> Y
[>]HR
*
[>]H.MS
RTN
LBL 45 ;; XEQ * = divide timecode in Y by number in X
x<> Y
[>]HR
Posts: 3,283
Threads: 104
Joined: Jul 2005
anetzer, you must have entered the word TIME in alpha mode. There is a command in the alpha catalog the formats the X register as a time value and puts the result the alpha register. Use this instead.