randomize.o \
read.o \
revers.o \
+ systime.o \
where.o \
write.o
all: $(C_OBJS) $(S_OBJS)
clean:
- @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS) crt0.o
+ @rm -f $(C_OBJS:.c=.s) $(C_OBJS) $(S_OBJS)
--- /dev/null
+;
+; 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
+
+
scroll.o \
setcolor.o \
siocall.o \
+ systime.o \
tvtype.o \
ucase_fn.o \
where.o \
--- /dev/null
+;
+; 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
+
+
%.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)
--- /dev/null
+;
+; 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
+
+
oserrlist.o \
oserror.o \
revers.o \
+ systime.o \
where.o
all: $(C_OBJS) $(S_OBJS)
--- /dev/null
+;
+; 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
+
+
@$(AS) -o $@ $(AFLAGS) $<
-S_OBJS = ctype.o callroutine.o enterdesktop.o firstinit.o getrandom.o getserialnumber.o\
- initdoneio.o mainloop.o panic.o tobasic.o setdevice.o get_ostype.o
+S_OBJS = ctype.o \
+ callroutine.o \
+ enterdesktop.o \
+ firstinit.o \
+ get_ostype.o \
+ getrandom.o \
+ getserialnumber.o \
+ initdoneio.o \
+ mainloop.o \
+ panic.o \
+ tobasic.o \
+ setdevice.o \
+ systime.o
all: $(S_OBJS)
--- /dev/null
+;
+; 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
+
+