Added _systime for all platforms
git-svn-id: svn://svn.cc65.org/cc65/trunk@1510 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -11,10 +11,13 @@
|
||||
%.o: %.s
|
||||
@$(AS) -g -o $@ $(AFLAGS) $<
|
||||
|
||||
OBJS = crt0.o
|
||||
C_OBJS =
|
||||
|
||||
all: $(OBJS)
|
||||
S_OBJS = crt0.o \
|
||||
systime.o
|
||||
|
||||
all: $(C_OBJS) $(S_OBJS)
|
||||
|
||||
clean:
|
||||
@rm -f $(OBJS)
|
||||
@rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
|
||||
|
||||
|
||||
28
libsrc/atmos/systime.s
Normal file
28
libsrc/atmos/systime.s
Normal file
@@ -0,0 +1,28 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 12.11.2002
|
||||
;
|
||||
; time_t _systime (void);
|
||||
; /* Similar to time(), but:
|
||||
; * - Is not ISO C
|
||||
; * - Does not take the additional pointer
|
||||
; * - Does not set errno when returning -1
|
||||
; */
|
||||
;
|
||||
|
||||
.export __systime
|
||||
|
||||
.importzp sreg
|
||||
|
||||
.code
|
||||
|
||||
.proc __systime
|
||||
|
||||
lda #$FF
|
||||
tax
|
||||
sta sreg
|
||||
sta sreg+1
|
||||
rts ; Return -1
|
||||
|
||||
.endproc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user