1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

Merge pull request #1685 from jefftranter/fix-typos

Fix some commonly made spelling errors in comments.
This commit is contained in:
Bob Andrews 2022-02-22 13:01:38 +01:00 committed by GitHub
commit f8cdb2ab63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 62 additions and 62 deletions

View File

@ -275,7 +275,7 @@ XFWRITE = $3B ; Only in TELEMON 3.x write file (bank 7 of Orix
; Clock primitive
XRECLK = $3C ; Reset clock
XCLCL = $3D ; Close clock
XWRCLK = $3E ; Displays clock in the adress in A & Y registers
XWRCLK = $3E ; Displays clock in the address in A & Y registers
; Sound primitives
XSONPS = $40 ; Send data to PSG register (14 values)

View File

@ -370,7 +370,7 @@ The names in the parentheses denote the symbols to be used for static linking of
In memory constrained situations the memory from $803 to $1FFF
can be made available to a program by calling <tt/_heapadd ((void *) 0x0803, 0x17FD);/
at the beginning of <tt/main()/. Doing so is beneficial even if the program
doesn't use the the heap explicitly because loading the driver (and in fact
doesn't use the heap explicitly because loading the driver (and in fact
already opening the driver file) uses the heap implicitly.
</descrip><p>

View File

@ -376,7 +376,7 @@ The names in the parentheses denote the symbols to be used for static linking of
In memory constrained situations the memory from &dollar;803 to &dollar;1FFF
can be made available to a program by calling <tt/_heapadd ((void *) 0x0803, 0x17FD);/
at the beginning of <tt/main()/. Doing so is beneficial even if the program
doesn't use the the heap explicitly because loading the driver (and in fact
doesn't use the heap explicitly because loading the driver (and in fact
already opening the driver file) uses the heap implicitly.
</descrip><p>

View File

@ -126,7 +126,7 @@ and &dollar;FF3F.
In memory constrained situations the memory from &dollar;400 to &dollar;7FF
can be made available to a program by calling <tt/_heapadd ((void *) 0x0400, 0x0400);/
at the beginning of <tt/main()/. Doing so is beneficial even if the program
doesn't use the the heap explicitly because loading a driver uses the heap implicitly.
doesn't use the heap explicitly because loading a driver uses the heap implicitly.
Using <tt/c64-soft80.o/ is as simple as placing it on the linker command
line like this:

View File

@ -3108,7 +3108,7 @@ See: <tt><ref id=".ASCIIZ" name=".ASCIIZ"></tt>,<tt><ref id=".CHARMAP" name=".CH
<sect1><tt>.IFDEF</tt><label id=".IFDEF"><p>
Conditional assembly: Check if a symbol is defined. Must be followed by
a symbol name. The condition is true if the the given symbol is already
a symbol name. The condition is true if the given symbol is already
defined, and false otherwise.
See also: <tt><ref id=".DEFINED" name=".DEFINED"></tt>
@ -3143,7 +3143,7 @@ See: <tt><ref id=".ASCIIZ" name=".ASCIIZ"></tt>,<tt><ref id=".CHARMAP" name=".CH
<sect1><tt>.IFNDEF</tt><label id=".IFNDEF"><p>
Conditional assembly: Check if a symbol is defined. Must be followed by
a symbol name. The condition is true if the the given symbol is not
a symbol name. The condition is true if the given symbol is not
defined, and false otherwise.
See also: <tt><ref id=".DEFINED" name=".DEFINED"></tt>
@ -3152,7 +3152,7 @@ See: <tt><ref id=".ASCIIZ" name=".ASCIIZ"></tt>,<tt><ref id=".CHARMAP" name=".CH
<sect1><tt>.IFNREF</tt><label id=".IFNREF"><p>
Conditional assembly: Check if a symbol is referenced. Must be followed
by a symbol name. The condition is true if if the the given symbol was
by a symbol name. The condition is true if the given symbol was
not referenced before, and false otherwise.
See also: <tt><ref id=".REFERENCED" name=".REFERENCED"></tt>
@ -3197,7 +3197,7 @@ See: <tt><ref id=".ASCIIZ" name=".ASCIIZ"></tt>,<tt><ref id=".CHARMAP" name=".CH
<sect1><tt>.IFREF</tt><label id=".IFREF"><p>
Conditional assembly: Check if a symbol is referenced. Must be followed
by a symbol name. The condition is true if if the the given symbol was
by a symbol name. The condition is true if the given symbol was
referenced before, and false otherwise.
This command may be used to build subroutine libraries in include files

View File

@ -6127,7 +6127,7 @@ pointer you're passing somewhere else, otherwise
<tscreen><verb>
ptr = realloc (ptr, size);
</verb></tscreen>
will loose your only copy of <tt/ptr/ if <tt/realloc/ returns <tt/NULL/.
will lose your only copy of <tt/ptr/ if <tt/realloc/ returns <tt/NULL/.
<item>The function is only available as fastcall function, so it may only
be used in presence of a prototype.
</itemize>

View File

@ -105,7 +105,7 @@ struct __dos2x {
unsigned char* zbufp; /* points to user filename */
unsigned char* zdrva; /* points to serveral buffers (mostly VTOC) */
unsigned char* zsba; /* points to sector buffer */
unsigned char errno; /* number of occured error */
unsigned char errno; /* number of occurred error */
};
typedef struct __dos2x dos2x_t;

View File

@ -59,21 +59,21 @@ unsigned long __fastcall__ udiv32by16r16 (unsigned long rhs, unsigned lhs);
*/
int __fastcall__ imul8x8r16 (signed char lhs, signed char rhs);
/* Multiplicate two signed 8 bit to yield an signed 16 bit result */
/* Multiply two signed 8 bit to yield an signed 16 bit result */
long __fastcall__ imul16x16r32 (int lhs, int rhs);
/* Multiplicate two signed 16 bit to yield a signed 32 bit result */
/* Multiply two signed 16 bit to yield a signed 32 bit result */
unsigned __fastcall__ umul8x8r16 (unsigned char lhs, unsigned char rhs);
/* Multiplicate two unsigned 8 bit to yield an unsigned 16 bit result */
/* Multiply two unsigned 8 bit to yield an unsigned 16 bit result */
unsigned long __fastcall__ umul16x8r32 (unsigned lhs, unsigned char rhs);
/* Multiplicate an unsigned 16 bit by an unsigned 8 bit number yielding a 24
/* Multiply an unsigned 16 bit by an unsigned 8 bit number yielding a 24
** bit unsigned result that is extended to 32 bits for easier handling from C.
*/
unsigned long __fastcall__ umul16x16r32 (unsigned lhs, unsigned rhs);
/* Multiplicate two unsigned 16 bit to yield an unsigned 32 bit result */
/* Multiply two unsigned 16 bit to yield an unsigned 32 bit result */
unsigned int __fastcall__ mul20 (unsigned char value);
/* Multiply an 8 bit unsigned value by 20 and return the 16 bit unsigned

View File

@ -129,7 +129,7 @@ setbuf: lda #$00 ; Low byte
.assert MLI::OPEN::PATHNAME = MLI::INFO::PATHNAME, error
; Lower file level to avoid program file
; being closed by C libary shutdown code
; being closed by C library shutdown code
ldx LEVEL
stx level
beq :+
@ -185,13 +185,13 @@ setbuf: lda #$00 ; Low byte
lda #$00 ; '\0'
beq :- ; Branch always
; Call loader stub after C libary shutdown
; Call loader stub after C library shutdown
: lda #<target
ldx #>target
sta done+1
stx done+2
; Initiate C libary shutdown
; Initiate C library shutdown
jmp _exit
.bss

View File

@ -72,7 +72,7 @@ reu_params: .word $0000 ; Host address, lo, hi
.byte $00 ; Expansion bank no.
.word $0000 ; # bytes to move, lo, hi
.byte $00 ; Interrupt mask reg.
.byte $00 ; Adress control reg.
.byte $00 ; Address control reg.
.code

View File

@ -73,7 +73,7 @@ reu_params: .word $0000 ; Host address, lo, hi
.byte $00 ; Expansion bank no.
.word $0000 ; # bytes to move, lo, hi
.byte $00 ; Interrupt mask reg.
.byte $00 ; Adress control reg.
.byte $00 ; Address control reg.
.code

View File

@ -130,7 +130,7 @@ dowrite:
beq notrunc
jsr scratch
; Complete the the file name. Check for append mode here.
; Complete the file name. Check for append mode here.
notrunc:
lda tmp3 ; Get the mode again
@ -168,7 +168,7 @@ nofile: ; ... else use SA=0 (read)
jsr OPEN
bcs oserror
; Open the the drive command channel and read it
; Open the drive command channel and read it
ldx fnunit
jsr opencmdchannel

View File

@ -31,7 +31,7 @@ FILE* __fastcall__ freopen (const char* name, const char* mode, FILE* f)
** overwritten by _fopen.
*/
if (close (f->f_fd) < 0) {
/* An error occured, errno is already set */
/* An error occurred, errno is already set */
return 0;
}

View File

@ -19,7 +19,7 @@ specval:
; Common subroutine to pop the parameters and put them into core
;
dopop: sta tmp1 ; will loose high byte
dopop: sta tmp1 ; will lose high byte
ldy #0
lda (sp),y
sta ptr2

View File

@ -18,7 +18,7 @@
; Common subroutine to pop the parameters and put them into core
;
dopop: sta tmp1 ; will loose high byte
dopop: sta tmp1 ; will lose high byte
jsr popax ; get s to ptr2
sta ptr2
stx ptr2+1

View File

@ -58,7 +58,7 @@ DbgBreak:
.res 256
DbgStack:
; Swap space for the the C temporaries
; Swap space for the C temporaries
CTemp:
_DbgCS: .res 2 ; sp

View File

@ -24,7 +24,7 @@ gotoxy: jsr popa ; Get Y
jsr popa
sta SCRX
; Update adress video ram position when SCRY is modified (update_adscr)
; Update address video ram position when SCRY is modified (update_adscr)
; Fall through
.endproc

View File

@ -379,7 +379,7 @@ out:
tya
tax
lda ptr3 ; XSCHAR needs in A and Y the adress of the string
lda ptr3 ; XSCHAR needs in A and Y the address of the string
ldy ptr3+1
BRK_TELEMON(XSCHAR)
rts

View File

@ -372,7 +372,7 @@ out:
tya
tax
lda ptr3 ; XSCHAR needs in A and Y the adress of the string
lda ptr3 ; XSCHAR needs in A and Y the address of the string
ldy ptr3+1
BRK_TELEMON(XSCHAR)
rts

View File

@ -159,7 +159,7 @@ tgi_clip_sign: .res 1
;----------------------------------------------------------------------------
; Multiplicate value in y/a by dy, then divide by dx.
; Multiply value in y/a by dy, then divide by dx.
;
.code
@ -176,7 +176,7 @@ tgi_clip_sign: .res 1
lda tgi_clip_dy
ldx tgi_clip_dy+1 ; rhs
jsr umul16x16r32 ; Multiplicate
jsr umul16x16r32 ; Multiply
; Move the result of the multiplication into ptr1:ptr2
@ -199,7 +199,7 @@ done: bit tmp1
;----------------------------------------------------------------------------
; Multiplicate value in y/a by dx, then divide by dy.
; Multiply value in y/a by dx, then divide by dy.
;
.code
@ -216,7 +216,7 @@ done: bit tmp1
lda tgi_clip_dx
ldx tgi_clip_dx+1 ; rhs
jsr umul16x16r32 ; Multiplicate
jsr umul16x16r32 ; Multiply
; Move the result of the multiplication into ptr1:ptr2

View File

@ -33,7 +33,7 @@ _tgi_imulround:
; ASM callable entry point
tgi_imulround:
; Multiplicate
; Multiply
jsr imul16x16r32

View File

@ -79,9 +79,9 @@ GetProcessedCoord:
jsr GetOp
; Multiplicate with the scale factor.
; Multiply with the scale factor.
jmp tgi_imulround ; Multiplicate, round and scale
jmp tgi_imulround ; Multiply, round and scale
;----------------------------------------------------------------------------
; Add the base coordinate with offset in Y to the value in A/X
@ -133,7 +133,7 @@ GetProcessedCoord:
.code
.proc _tgi_vectorchar
; Multiplicate the char value by two and save into Y
; Multiply the char value by two and save into Y
asl a
tay

View File

@ -53,7 +53,7 @@ test.s: test.grc
$(GRC) -s test.s test.grc
vlir.cvt: vlir.grc vlir0.s vlir1.s vlir2.s
# using seperate calls here for demonstration purposes:
# using separate calls here for demonstration purposes:
$(GRC) -t $(SYS) -s vlir.s vlir.grc
$(AS) -t $(SYS) vlir.s
$(AS) -t $(SYS) vlir0.s
@ -63,7 +63,7 @@ vlir.cvt: vlir.grc vlir0.s vlir1.s vlir2.s
# you can also do the above in one command:
# $(CL) -t $(SYS) -o vlir.cvt vlir.grc vlir0.s vlir1.s vlir2.s
clean:
@$(DEL) test.s test.h 2>$(NULLDEV)
@$(DEL) vlir.s vlir.cvt vlir.c vlir.h 2>$(NULLDEV)

View File

@ -237,7 +237,7 @@ void main (void)
/* The linker makes sure that the call to foo() ends up at the right mem
** addr. However it's up to user to make sure that the - right - overlay
** is actually loaded before making the the call.
** is actually loaded before making the call.
*/
foo ();
}

View File

@ -112,7 +112,7 @@ void main (void)
/* The linker makes sure that the call to foo() ends up at the right mem
** addr. However it's up to user to make sure that the - right - overlay
** is actually loaded before making the the call.
** is actually loaded before making the call.
*/
foo ();
}

View File

@ -1708,7 +1708,7 @@ ExprNode* GenLiteralExpr (long Val)
ExprNode* GenLiteral0 (void)
/* Return an expression tree that encodes the the number zero */
/* Return an expression tree that encodes the number zero */
{
return GenLiteralExpr (0);
}

View File

@ -81,7 +81,7 @@ ExprNode* GenLiteralExpr (long Val);
/* Return an expression tree that encodes the given literal value */
ExprNode* GenLiteral0 (void);
/* Return an expression tree that encodes the the number zero */
/* Return an expression tree that encodes the number zero */
ExprNode* GenSymExpr (struct SymEntry* Sym);
/* Return an expression node that encodes the given symbol */

View File

@ -429,7 +429,7 @@ void ReleaseFullLineInfo (Collection* LineInfos)
/* Walk over all entries */
for (I = 0; I < CollCount (LineInfos); ++I) {
/* Release the the line info */
/* Release the line info */
ReleaseLineInfo (CollAt (LineInfos, I));
}

View File

@ -637,7 +637,7 @@ void MacUndef (const StrBuf* Name, unsigned char Style)
static int MacExpand (void* Data)
/* If we're currently expanding a macro, set the the scanner token and
/* If we're currently expanding a macro, set the scanner token and
** attribute to the next value and return true. If we are not expanding
** a macro, return false.
*/

View File

@ -711,7 +711,7 @@ static void StudyMul (ExprNode* Expr, ExprDesc* D)
*/
if (ED_IsConst (D) && ED_IsValid (&Right)) {
/* Multiplicate both, result goes into Right */
/* Multiply both, result goes into Right */
ED_Mul (&Right, D);
/* Move result into D */
@ -719,7 +719,7 @@ static void StudyMul (ExprNode* Expr, ExprDesc* D)
} else if (ED_IsConst (&Right) && ED_IsValid (D)) {
/* Multiplicate both */
/* Multiply both */
ED_Mul (D, &Right);
} else {

View File

@ -95,7 +95,7 @@ void FreeCaseNodeColl (Collection* Nodes)
int SearchCaseNode (const Collection* Nodes, unsigned char Key, int* Index)
/* Search for a node in the given collection. If the node has been found,
** set Index to the index of the node and return true. If the node was not
** found, set Index the the insertion position of the node and return
** found, set Index the insertion position of the node and return
** false.
*/
{

View File

@ -116,7 +116,7 @@ void FreeCaseNodeColl (Collection* Nodes);
int SearchCaseNode (const Collection* Nodes, unsigned char Key, int* Index);
/* Search for a node in the given collection. If the node has been found,
** set Index to the index of the node and return true. If the node was not
** found, set Index the the insertion position of the node and return
** found, set Index to the insertion position of the node and return
** false.
*/

View File

@ -1409,7 +1409,7 @@ static unsigned g_intpromotion (unsigned flags)
unsigned g_typeadjust (unsigned lhs, unsigned rhs)
/* Adjust the integer operands before doing a binary operation. lhs is a flags
** value, that corresponds to the value on TOS, rhs corresponds to the value
** in (e)ax. The return value is the the flags value for the resulting type.
** in (e)ax. The return value is the flags value for the resulting type.
*/
{
/* Get the type spec from the flags */

View File

@ -217,7 +217,7 @@ void g_reglong (unsigned Flags);
unsigned g_typeadjust (unsigned lhs, unsigned rhs);
/* Adjust the integer operands before doing a binary operation. lhs is a flags
** value, that corresponds to the value on TOS, rhs corresponds to the value
** in (e)ax. The return value is the the flags value for the resulting type.
** in (e)ax. The return value is the flags value for the resulting type.
*/
unsigned g_typecast (unsigned lhs, unsigned rhs);

View File

@ -846,7 +846,7 @@ static unsigned FunctionArgList (FuncDesc* Func, int IsFastcall, ExprDesc* ED)
/* The function returns the size of all arguments pushed onto the stack.
** However, if there are parameters missed (which is an error, and was
** flagged by the compiler), AND a stack frame was preallocated above,
** we would loose track of the stackpointer, and generate an internal error
** we would lose track of the stackpointer, and generate an internal error
** later. So we correct the value by the parameters that should have been
** pushed into, to avoid an internal compiler error. Since an error was
** generated before, no code will be output anyway.

View File

@ -538,7 +538,7 @@ static void AssembleFile (const char* File, unsigned ArgCount)
/* Check if this is the last processing step */
if (DoLink) {
/* We're linking later. Add the output file of the assembly
** the the file list of the linker. The name of the output
** to the file list of the linker. The name of the output
** file is that of the input file with ".s" replaced by ".o".
*/
char* ObjName = MakeFilename (File, ".o");
@ -1627,7 +1627,7 @@ int main (int argc, char* argv [])
break;
case FILETYPE_O65:
/* Add the the object file converter files */
/* Add the object file converter files */
ConvertO65 (Arg);
break;

View File

@ -134,7 +134,7 @@ Float FP_F_Sub (Float Left, Float Right)
Float FP_F_Mul (Float Left, Float Right)
/* Multiplicate two floats */
/* Multiply two floats */
{
Float D;
D.V = Left.V * Right.V;
@ -220,7 +220,7 @@ Double FP_D_Sub (Double Left, Double Right)
Double FP_D_Mul (Double Left, Double Right)
/* Multiplicate two floats */
/* Multiply two floats */
{
Double D;
D.V = Left.V * Right.V;

View File

@ -102,7 +102,7 @@ Float FP_F_Sub (Float Left, Float Right);
/* Subtract two floats */
Float FP_F_Mul (Float Left, Float Right);
/* Multiplicate two floats */
/* Multiply two floats */
Float FP_F_Div (Float Left, Float Right);
/* Divide two floats */
@ -129,7 +129,7 @@ Double FP_D_Sub (Double Left, Double Right);
/* Subtract two floats */
Double FP_D_Mul (Double Left, Double Right);
/* Multiplicate two floats */
/* Multiply two floats */
Double FP_D_Div (Double Left, Double Right);
/* Divide two floats */

View File

@ -8,7 +8,7 @@
**
** The program asks for a filename (if it hasn't
** got one from argv). I then opens the file,
** reads the the first 16 bytes and displays them
** reads the first 16 bytes and displays them
** (as hex values).
** The values of sp (cc65 runtime stack pointer)
** are displayed at some places. The displayed

View File

@ -20,7 +20,7 @@ int main(void) {
n = (p == &func);
n = (p == func);
/* the following are not valid C and should go into seperate tests that MUST fail */
/* the following are not valid C and should go into separate tests that MUST fail */
/*
++p;
n = (p > &func);

View File

@ -1,5 +1,5 @@
/*
!!DESCRIPTION!! Substraction Test
!!DESCRIPTION!! Subtraction Test
!!ORIGIN!! SDCC regression tests
!!LICENCE!! GPL, read COPYING.GPL
*/

View File

@ -1,5 +1,5 @@
/*
!!DESCRIPTION!! Substraction Test
!!DESCRIPTION!! Subtraction Test
!!ORIGIN!! SDCC regression tests
!!LICENCE!! GPL, read COPYING.GPL
*/