From 03a99569e3e20b1e887b1fc5cd36917c0b39b753 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sun, 19 Aug 2018 14:35:30 +0200
Subject: [PATCH] Optimize for size.
---
libsrc/common/time.s | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/libsrc/common/time.s b/libsrc/common/time.s
index 9b297d4d3..40b470f5b 100644
--- a/libsrc/common/time.s
+++ b/libsrc/common/time.s
@@ -6,7 +6,7 @@
.export _time
- .import decsp1
+ .import decsp1, ldeaxi
.importzp ptr1, sreg, tmp1, tmp2
.include "time.inc"
@@ -27,12 +27,10 @@
ldx #>time
jsr _clock_gettime
sta tmp2
- lda time + timespec::tv_sec+2
- ldx time + timespec::tv_sec+3
- sta sreg
- stx sreg+1
- lda time + timespec::tv_sec
- ldx time + timespec::tv_sec+1
+ lda #