1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Normalized coding style.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5500 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-02-08 16:56:54 +00:00
parent 00ddcaeb93
commit 5149fea3e1
20 changed files with 323 additions and 342 deletions

View File

@ -4,8 +4,6 @@
* Maciej 'YTM/Elysium' Witkowiak 15.7.2001
*/
#include <stdlib.h>
#include <geos.h>

View File

@ -3,7 +3,7 @@
;
; 2.7.2001
;
; Wrapper for GEOS standard input device interface
; Driver for GEOS standard input device interface
;
.export _mouse_init, _mouse_done
@ -19,7 +19,6 @@
.include "jumptab.inc"
.include "geossym.inc"
.code
; --------------------------------------------------------------------------
@ -191,4 +190,3 @@ _mouse_buttons:
and #SET_MOUSE
lsr
rts

View File

@ -5,8 +5,8 @@
; CC65 runtime: call function via pointer in ax
;
.include "jumptab.inc"
.export callax
.include "jumptab.inc"
callax = CallRoutine

View File

@ -16,8 +16,8 @@ S_OBJS += callroutine.o \
getserialnumber.o \
mainargs.o \
mainloop.o \
oserror.o \
oserrlist.o \
oserror.o \
panic.o \
randomize.o \
setoserror.o \

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Alliance' Witkowiak
;

View File

@ -6,13 +6,13 @@
.export _exit
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import __VLIR0_START__, __VLIR0_SIZE__ ; Linker generated
.import __STACKSIZE__ ; Linker generated
.import initlib, donelib
.import callmain
.import zerobss
.importzp sp
.include "jumptab.inc"
; ------------------------------------------------------------------------

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Elysium' Witkowiak
;

View File

@ -10,9 +10,14 @@
.segment "EXTZP" : zeropage
cursor_x: .res 2 ; Cursor column (0-319/639)
cursor_y: .res 1 ; Cursor row (0-199)
cursor_flag: .res 1 ; Cursor on/off (0-off)
cursor_x:
.res 2 ; Cursor column (0-319/639)
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_r: .res 1 ; Cursor row (0-24)
cursor_c:
.res 1 ; Cursor column (0-39/79)
cursor_r:
.res 1 ; Cursor row (0-24)

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Alliance' Witkowiak
;

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Elysium' Witkowiak
;

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Alliance' Witkowiak
;
@ -12,7 +11,6 @@
.include "geossym.inc"
_GetSerialNumber:
jsr GetSerialNumber
lda r0L
ldx r0H

View File

@ -18,13 +18,11 @@
.include "const.inc"
.include "geossym.inc"
;---------------------------------------------------------------------------
; Setup arguments for main
.segment "INIT"
.proc initmainargs
; Setup arguments for main
initmainargs:
; Setup a pointer to our argv vector
lda #<argv
@ -33,7 +31,6 @@
sta __argv+1
; Copy program name
ldy #0
@fn_loop:
lda dirEntryBuf+OFF_FNAME,y
@ -53,7 +50,6 @@
sta __argc+1
; Check if there are any more arguments
lda dataFileName
bne @threeargs
ldx #0 ; no dataFileName - NULL the 2nd argument
@ -67,17 +63,15 @@
stx __argc
rts
.endproc
;---------------------------------------------------------------------------
; 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 dataDiskName ; dataDiskName
.word $0000 ; last one must be NULL
.bss
argv0: .res 17 ; Program name
argv0:
.res 17 ; Program name

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Elysium' Witkowiak
;

View File

@ -14,10 +14,10 @@
; error code could not be found.
;
.include "const.inc"
.export __sys_oserrlist
.include "const.inc"
;----------------------------------------------------------------------------
; 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 74, "Drive not ready"
sys_oserr_sentinel "Unknown error"

View File

@ -8,6 +8,7 @@
;
.export __osmaperrno
.include "errno.inc"
.include "const.inc"

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Alliance' Witkowiak
;

View File

@ -1,4 +1,3 @@
;
; Maciej 'YTM/Elysium' Witkowiak
;

View File

@ -1,4 +1,3 @@
/*
* systime.c
*
@ -8,9 +7,9 @@
#include <time.h>
#include <geos.h>
time_t _systime(void) {
struct tm currentTime;
time_t _systime(void)
{
struct tm currentTime;
currentTime.tm_sec = system_date.s_seconds;
currentTime.tm_min = system_date.s_minutes;
@ -24,11 +23,9 @@ struct tm currentTime;
currentTime.tm_isdst = -1;
return mktime(&currentTime);
}
clock_t clock(void) {
clock_t clock(void)
{
return _systime();
}

View File

@ -4,11 +4,10 @@
; unsigned char __fastcall__ _sysuname (struct utsname* buf);
;
.import utscopy
.export __sysuname, utsdata
.import utscopy
__sysuname = utscopy
__sysuname = utscopy
;--------------------------------------------------------------------------
; Data. We define a fixed utsname struct here and just copy it.