Normalized coding style.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5500 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -4,8 +4,6 @@
|
|||||||
* Maciej 'YTM/Elysium' Witkowiak 15.7.2001
|
* Maciej 'YTM/Elysium' Witkowiak 15.7.2001
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <geos.h>
|
#include <geos.h>
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
;
|
;
|
||||||
; 2.7.2001
|
; 2.7.2001
|
||||||
;
|
;
|
||||||
; Wrapper for GEOS standard input device interface
|
; Driver for GEOS standard input device interface
|
||||||
;
|
;
|
||||||
|
|
||||||
.export _mouse_init, _mouse_done
|
.export _mouse_init, _mouse_done
|
||||||
@@ -19,7 +19,6 @@
|
|||||||
.include "jumptab.inc"
|
.include "jumptab.inc"
|
||||||
.include "geossym.inc"
|
.include "geossym.inc"
|
||||||
|
|
||||||
|
|
||||||
.code
|
.code
|
||||||
|
|
||||||
; --------------------------------------------------------------------------
|
; --------------------------------------------------------------------------
|
||||||
@@ -191,4 +190,3 @@ _mouse_buttons:
|
|||||||
and #SET_MOUSE
|
and #SET_MOUSE
|
||||||
lsr
|
lsr
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
; CC65 runtime: call function via pointer in ax
|
; CC65 runtime: call function via pointer in ax
|
||||||
;
|
;
|
||||||
|
|
||||||
.include "jumptab.inc"
|
|
||||||
|
|
||||||
.export callax
|
.export callax
|
||||||
|
|
||||||
|
.include "jumptab.inc"
|
||||||
|
|
||||||
callax = CallRoutine
|
callax = CallRoutine
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ S_OBJS += callroutine.o \
|
|||||||
getserialnumber.o \
|
getserialnumber.o \
|
||||||
mainargs.o \
|
mainargs.o \
|
||||||
mainloop.o \
|
mainloop.o \
|
||||||
oserror.o \
|
|
||||||
oserrlist.o \
|
oserrlist.o \
|
||||||
|
oserror.o \
|
||||||
panic.o \
|
panic.o \
|
||||||
randomize.o \
|
randomize.o \
|
||||||
setoserror.o \
|
setoserror.o \
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Alliance' Witkowiak
|
; Maciej 'YTM/Alliance' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
|
|
||||||
.export _exit
|
.export _exit
|
||||||
.export __STARTUP__ : absolute = 1 ; Mark as startup
|
.export __STARTUP__ : absolute = 1 ; Mark as startup
|
||||||
|
|
||||||
.import __VLIR0_START__, __VLIR0_SIZE__ ; Linker generated
|
.import __VLIR0_START__, __VLIR0_SIZE__ ; Linker generated
|
||||||
.import __STACKSIZE__ ; Linker generated
|
.import __STACKSIZE__ ; Linker generated
|
||||||
.import initlib, donelib
|
.import initlib, donelib
|
||||||
.import callmain
|
.import callmain
|
||||||
.import zerobss
|
.import zerobss
|
||||||
.importzp sp
|
.importzp sp
|
||||||
|
|
||||||
.include "jumptab.inc"
|
.include "jumptab.inc"
|
||||||
|
|
||||||
; ------------------------------------------------------------------------
|
; ------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Elysium' Witkowiak
|
; Maciej 'YTM/Elysium' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -10,9 +10,14 @@
|
|||||||
|
|
||||||
.segment "EXTZP" : zeropage
|
.segment "EXTZP" : zeropage
|
||||||
|
|
||||||
cursor_x: .res 2 ; Cursor column (0-319/639)
|
cursor_x:
|
||||||
cursor_y: .res 1 ; Cursor row (0-199)
|
.res 2 ; Cursor column (0-319/639)
|
||||||
cursor_flag: .res 1 ; Cursor on/off (0-off)
|
cursor_y:
|
||||||
|
.res 1 ; Cursor row (0-199)
|
||||||
|
cursor_flag:
|
||||||
|
.res 1 ; Cursor on/off (0-off)
|
||||||
|
|
||||||
cursor_c: .res 1 ; Cursor column (0-39/79)
|
cursor_c:
|
||||||
cursor_r: .res 1 ; Cursor row (0-24)
|
.res 1 ; Cursor column (0-39/79)
|
||||||
|
cursor_r:
|
||||||
|
.res 1 ; Cursor row (0-24)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Alliance' Witkowiak
|
; Maciej 'YTM/Alliance' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Elysium' Witkowiak
|
; Maciej 'YTM/Elysium' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Alliance' Witkowiak
|
; Maciej 'YTM/Alliance' Witkowiak
|
||||||
;
|
;
|
||||||
@@ -12,7 +11,6 @@
|
|||||||
.include "geossym.inc"
|
.include "geossym.inc"
|
||||||
|
|
||||||
_GetSerialNumber:
|
_GetSerialNumber:
|
||||||
|
|
||||||
jsr GetSerialNumber
|
jsr GetSerialNumber
|
||||||
lda r0L
|
lda r0L
|
||||||
ldx r0H
|
ldx r0H
|
||||||
|
|||||||
@@ -18,13 +18,11 @@
|
|||||||
.include "const.inc"
|
.include "const.inc"
|
||||||
.include "geossym.inc"
|
.include "geossym.inc"
|
||||||
|
|
||||||
;---------------------------------------------------------------------------
|
|
||||||
; Setup arguments for main
|
|
||||||
|
|
||||||
.segment "INIT"
|
.segment "INIT"
|
||||||
|
|
||||||
.proc initmainargs
|
; Setup arguments for main
|
||||||
|
|
||||||
|
initmainargs:
|
||||||
; Setup a pointer to our argv vector
|
; Setup a pointer to our argv vector
|
||||||
|
|
||||||
lda #<argv
|
lda #<argv
|
||||||
@@ -33,7 +31,6 @@
|
|||||||
sta __argv+1
|
sta __argv+1
|
||||||
|
|
||||||
; Copy program name
|
; Copy program name
|
||||||
|
|
||||||
ldy #0
|
ldy #0
|
||||||
@fn_loop:
|
@fn_loop:
|
||||||
lda dirEntryBuf+OFF_FNAME,y
|
lda dirEntryBuf+OFF_FNAME,y
|
||||||
@@ -53,7 +50,6 @@
|
|||||||
sta __argc+1
|
sta __argc+1
|
||||||
|
|
||||||
; Check if there are any more arguments
|
; Check if there are any more arguments
|
||||||
|
|
||||||
lda dataFileName
|
lda dataFileName
|
||||||
bne @threeargs
|
bne @threeargs
|
||||||
ldx #0 ; no dataFileName - NULL the 2nd argument
|
ldx #0 ; no dataFileName - NULL the 2nd argument
|
||||||
@@ -67,17 +63,15 @@
|
|||||||
stx __argc
|
stx __argc
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.endproc
|
|
||||||
|
|
||||||
;---------------------------------------------------------------------------
|
|
||||||
; Data
|
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
|
||||||
argv: .word argv0 ; Pointer to program name
|
argv:
|
||||||
|
.word argv0 ; Pointer to program name
|
||||||
.word dataFileName ; dataFileName or NULL if last one
|
.word dataFileName ; dataFileName or NULL if last one
|
||||||
.word dataDiskName ; dataDiskName
|
.word dataDiskName ; dataDiskName
|
||||||
.word $0000 ; last one must be NULL
|
.word $0000 ; last one must be NULL
|
||||||
|
|
||||||
.bss
|
.bss
|
||||||
argv0: .res 17 ; Program name
|
|
||||||
|
argv0:
|
||||||
|
.res 17 ; Program name
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Elysium' Witkowiak
|
; Maciej 'YTM/Elysium' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -14,10 +14,10 @@
|
|||||||
; error code could not be found.
|
; error code could not be found.
|
||||||
;
|
;
|
||||||
|
|
||||||
.include "const.inc"
|
|
||||||
|
|
||||||
.export __sys_oserrlist
|
.export __sys_oserrlist
|
||||||
|
|
||||||
|
.include "const.inc"
|
||||||
|
|
||||||
;----------------------------------------------------------------------------
|
;----------------------------------------------------------------------------
|
||||||
; Macros used to generate the list (may get moved to an include file?)
|
; Macros used to generate the list (may get moved to an include file?)
|
||||||
|
|
||||||
@@ -90,5 +90,3 @@ __sys_oserrlist:
|
|||||||
sys_oserr_entry 73, "DOS version mismatch"
|
sys_oserr_entry 73, "DOS version mismatch"
|
||||||
sys_oserr_entry 74, "Drive not ready"
|
sys_oserr_entry 74, "Drive not ready"
|
||||||
sys_oserr_sentinel "Unknown error"
|
sys_oserr_sentinel "Unknown error"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
;
|
;
|
||||||
|
|
||||||
.export __osmaperrno
|
.export __osmaperrno
|
||||||
|
|
||||||
.include "errno.inc"
|
.include "errno.inc"
|
||||||
.include "const.inc"
|
.include "const.inc"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Alliance' Witkowiak
|
; Maciej 'YTM/Alliance' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
;
|
;
|
||||||
; Maciej 'YTM/Elysium' Witkowiak
|
; Maciej 'YTM/Elysium' Witkowiak
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* systime.c
|
* systime.c
|
||||||
*
|
*
|
||||||
@@ -8,8 +7,8 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <geos.h>
|
#include <geos.h>
|
||||||
|
|
||||||
time_t _systime(void) {
|
time_t _systime(void)
|
||||||
|
{
|
||||||
struct tm currentTime;
|
struct tm currentTime;
|
||||||
|
|
||||||
currentTime.tm_sec = system_date.s_seconds;
|
currentTime.tm_sec = system_date.s_seconds;
|
||||||
@@ -24,11 +23,9 @@ struct tm currentTime;
|
|||||||
currentTime.tm_isdst = -1;
|
currentTime.tm_isdst = -1;
|
||||||
|
|
||||||
return mktime(¤tTime);
|
return mktime(¤tTime);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clock_t clock(void) {
|
clock_t clock(void)
|
||||||
|
{
|
||||||
return _systime();
|
return _systime();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
; unsigned char __fastcall__ _sysuname (struct utsname* buf);
|
; unsigned char __fastcall__ _sysuname (struct utsname* buf);
|
||||||
;
|
;
|
||||||
|
|
||||||
.export __sysuname, utsdata
|
|
||||||
|
|
||||||
.import utscopy
|
.import utscopy
|
||||||
|
.export __sysuname, utsdata
|
||||||
|
|
||||||
__sysuname = utscopy
|
__sysuname = utscopy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user