Skip to content

Commit e3fc96f

Browse files
committed
Fixing version and other files
1 parent f02c5c4 commit e3fc96f

File tree

14 files changed

+94
-56
lines changed

14 files changed

+94
-56
lines changed

CONTRIBUTING.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,45 @@ TBD
55

66
## Guide to contributing documentation
77
### File header
8-
TBD
8+
Every file should have an header like this:
9+
10+
<pre>
11+
/**
12+
* @file math.asm
13+
* @brief Math module
14+
* @details Simple macros for math operations.
15+
*
16+
* @author Raffaele Intorcia <a href="https://github.com/intoinside">@intoinside</a> [email protected]
17+
*
18+
* @copyright MIT License
19+
* Copyright (c) 2024 c128lib - https://github.com/c128lib
20+
*
21+
* Permission is hereby granted, free of charge, to any person obtaining a copy
22+
* of this software and associated documentation files (the "Software"), to deal
23+
* in the Software without restriction, including without limitation the rights
24+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
* copies of the Software, and to permit persons to whom the Software is
26+
* furnished to do so, subject to the following conditions:
27+
*
28+
* The above copyright notice and this permission notice shall be included in all
29+
* copies or substantial portions of the Software.
30+
*
31+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37+
* SOFTWARE.
38+
*
39+
* @date 2024
40+
*/
41+
</pre>
42+
43+
* a @brief keyword with a short description (typically one or two line)
44+
* a @details keyword (optional) with a longer description, with some hint about code used and comparison with similar code
45+
* one or more @author keyword with name, Github profile link and email
46+
* a @date keyword indicating year of creating file
947

1048
### Subroutine and macro header
1149
Every subroutine and macro should have an header like this:

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ MAN_LINKS = NO
21732173
# captures the structure of the code including all documentation.
21742174
# The default value is: NO.
21752175

2176-
GENERATE_XML = YES
2176+
GENERATE_XML = NO
21772177

21782178
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
21792179
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of

lib/cia-global.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
* @remark Register .A will be modified.
4646
* @remark Flags N and Z will be affected.
4747
*
48-
* @since 0.1.0
48+
* @since 1.0.0
4949
*/
5050
.macro c128lib_GetFirePressedPort1() { GetFirePressedPort1() }
5151

@@ -59,6 +59,6 @@
5959
* @remark Register .A will be modified.
6060
* @remark Flags N and Z will be affected.
6161
*
62-
* @since 0.1.0
62+
* @since 1.0.0
6363
*/
6464
.macro c128lib_GetFirePressedPort2() { GetFirePressedPort2() }

lib/cia.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
*
4848
* @note Use c128lib_GetFirePressedPort1 in cia-global.asm
4949
*
50-
* @since 0.1.0
50+
* @since 1.0.0
5151
*/
5252
.macro GetFirePressedPort1() {
5353
lda Cia.CIA1_DATA_PORT_B
@@ -66,7 +66,7 @@
6666
*
6767
* @note Use c128lib_GetFirePressedPort2 in cia-global.asm
6868
*
69-
* @since 0.1.0
69+
* @since 1.0.0
7070
*/
7171
.macro GetFirePressedPort2() {
7272
lda Cia.CIA1_DATA_PORT_A

lib/common-global.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
*
4646
* @param[in] sysAddress The address to which the BASIC program will SYS to start the machine code part.
4747
*
48-
* @since 0.1.0
48+
* @since 1.0.0
4949
*/
5050
.macro c128lib_BasicUpstart128(sysAddress) { BasicUpstart128(sysAddress) }
5151

@@ -62,7 +62,7 @@
6262
*
6363
* @param[in] label The label to jump to if the zero flag is not set.
6464
*
65-
* @since 0.1.0
65+
* @since 1.0.0
6666
*/
6767
.macro c128lib_fbne(label) { fbne(label) }
6868

@@ -79,6 +79,6 @@
7979
*
8080
* @param[in] label The label to jump to if the negative flag is set.
8181
*
82-
* @since 0.1.0
82+
* @since 1.0.0
8383
*/
8484
.macro c128lib_fbmi(label) { fbmi(label) }

lib/common.asm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*
5050
* @note Use c128lib_BasicUpstart128 in common-global.asm
5151
*
52-
* @since 0.1.0
52+
* @since 1.0.0
5353
*/
5454
.macro BasicUpstart128(sysAddress) {
5555
.pc = $1c01 "C128 Basic"
@@ -78,7 +78,7 @@ upstartEnd:
7878
*
7979
* @note Use c128lib_fbne in common-global.asm
8080
*
81-
* @since 0.1.0
81+
* @since 1.0.0
8282
*/
8383
.macro fbne(label) {
8484
here: // we have to add 2 to "here", because relative jump is counted right after bne xx, and this instruction takes 2 bytes
@@ -118,7 +118,7 @@ upstartEnd:
118118
*
119119
* @note Use c128lib_fbmi in common-global.asm
120120
*
121-
* @since 0.1.0
121+
* @since 1.0.0
122122
*/
123123
.macro fbmi(label) {
124124
here: // we have to add 2 to "here", because relative jump is counted right after bne xx, and this instruction takes 2 bytes

lib/io-global.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @remark Register .A, .X and .Y will be modified.
4848
* @remark Flags N and Z will be affected.
4949
*
50-
* @since 0.1.0
50+
* @since 1.0.0
5151
*/
5252
.macro c128lib_OpenIOChannel(filenumber, devicenumber, secondary) { OpenIOChannel(filenumber, devicenumber, secondary) }
5353

@@ -62,7 +62,7 @@
6262
* @remark Register .A, .X and .Y will be modified.
6363
* @remark Flags N and Z will be affected.
6464
*
65-
* @since 0.1.0
65+
* @since 1.0.0
6666
*/
6767
.macro c128lib_SetIOName(length, address) { SetIOName(length, address) }
6868

@@ -77,7 +77,7 @@
7777
*
7878
* @note Use c128lib_SetInputChannel in io-global.asm
7979
*
80-
* @since 0.1.0
80+
* @since 1.0.0
8181
*/
8282
.macro c128lib_SetInputChannel(filenumber) { SetInputChannel(filenumber) }
8383

@@ -90,7 +90,7 @@
9090
* @remark Register .X will be modified.
9191
* @remark Flags N and Z will be affected.
9292
*
93-
* @since 0.1.0
93+
* @since 1.0.0
9494
*/
9595
.macro c128lib_SetOutputChannel(filenumber) { SetOutputChannel(filenumber) }
9696

@@ -106,6 +106,6 @@
106106
* @param[in] devicenumber The device number for the I/O channel.
107107
* @param[in] secondary The secondary address for the I/O channel.
108108
*
109-
* @since 0.1.0
109+
* @since 1.0.0
110110
*/
111111
.macro c128lib_OpenFile(length, address, filenumber, devicenumber, secondary) { OpenFile(length, address, filenumber, devicenumber, secondary) }

lib/io.asm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
*
5050
* @note Use c128lib_OpenIOChannel in io-global.asm
5151
*
52-
* @since 0.1.0
52+
* @since 1.0.0
5353
*/
5454
.macro OpenIOChannel(filenumber, devicenumber, secondary) {
5555
lda #filenumber
@@ -74,7 +74,7 @@
7474
*
7575
* @note Use c128lib_SetIOName in io-global.asm
7676
*
77-
* @since 0.1.0
77+
* @since 1.0.0
7878
*/
7979
.macro SetIOName(length, address) {
8080
lda #length
@@ -97,7 +97,7 @@
9797
*
9898
* @note Use c128lib_SetInputChannel in io-global.asm
9999
*
100-
* @since 0.1.0
100+
* @since 1.0.0
101101
*/
102102
.macro SetInputChannel(filenumber) {
103103
ldx #filenumber
@@ -118,7 +118,7 @@
118118
*
119119
* @note Use c128lib_SetOutputChannel in io-global.asm
120120
*
121-
* @since 0.1.0
121+
* @since 1.0.0
122122
*/
123123
.macro SetOutputChannel(filenumber) {
124124
ldx #filenumber
@@ -142,7 +142,7 @@
142142
*
143143
* @note Use c128lib_OpenFile in io-global.asm
144144
*
145-
* @since 0.1.0
145+
* @since 1.0.0
146146
*/
147147
.macro OpenFile(length, address, filenumber, devicenumber, secondary) {
148148
SetIOName(length, address)

lib/math-global.asm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* @param[in,out] dest The memory location of the other 16-bit value.
5050
* @returns Result is returned in dest memory location.
5151
*
52-
* @since 0.1.0
52+
* @since 1.0.0
5353
*/
5454
.macro c128lib_Add16(value, dest) { Add16(value, dest) }
5555

@@ -68,7 +68,7 @@
6868
* @remark Register .A will be modified.
6969
* @remark Flags N, O, Z and C will be affected.
7070
*
71-
* @since 0.1.0
71+
* @since 1.0.0
7272
*/
7373
.macro c128lib_Sub16(value, dest) { Sub16(value, dest) }
7474

@@ -84,7 +84,7 @@
8484
* @remark Register .A will be modified.
8585
* @remark Flags N, Z and C will be affected.
8686
*
87-
* @since 0.1.0
87+
* @since 1.0.0
8888
*/
8989
.macro c128lib_Asl16(address) { Asl16(address) }
9090

@@ -99,7 +99,7 @@
9999
* @returns Result is returned in address memory location.
100100
* @remark Flags N and Z will be affected.
101101
*
102-
* @since 0.1.0
102+
* @since 1.0.0
103103
*/
104104
.macro c128lib_Inc16(address) { Inc16(address) }
105105

@@ -115,7 +115,7 @@
115115
* @remark Register .A will be modified.
116116
* @remark Flags N and Z will be affected.
117117
*
118-
* @since 0.1.0
118+
* @since 1.0.0
119119
*/
120120
.macro c128lib_Dec16(address) { Dec16(address) }
121121

@@ -132,7 +132,7 @@
132132
* @remark Registers .A, .X and .Y will be modified.
133133
* @remark Flags N, O, Z and C will be affected.
134134
*
135-
* @since 0.1.0
135+
* @since 1.0.0
136136
*/
137137
.macro c128lib_Div16By16(dividend, divisor, remainder) { Div16By16(dividend, divisor, remainder) }
138138

@@ -149,6 +149,6 @@
149149
* @remark Registers .A and .X will be modified.
150150
* @remark Flags N, O, Z and C will be affected.
151151
*
152-
* @since 0.1.0
152+
* @since 1.0.0
153153
*/
154154
.macro c128lib_Div16By8(dividend, divisor, remainder) { Div16By8(dividend, divisor, remainder) }

lib/math.asm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
*
5252
* @note Use c128lib_Add16 in math-global.asm
5353
*
54-
* @since 0.1.0
54+
* @since 1.0.0
5555
*/
5656
.macro Add16(value, dest) {
5757
clc
@@ -84,7 +84,7 @@
8484
*
8585
* @note Use c128lib_Sub16 in math-global.asm
8686
*
87-
* @since 0.1.0
87+
* @since 1.0.0
8888
*/
8989
.macro Sub16(value, dest) {
9090
sec
@@ -118,7 +118,7 @@
118118
*
119119
* @note Use c128lib_Asl16 in math-global.asm
120120
*
121-
* @since 0.1.0
121+
* @since 1.0.0
122122
*/
123123
.macro Asl16(address) {
124124
asl16 address
@@ -148,7 +148,7 @@
148148
*
149149
* @note Use c128lib_Inc16 in math-global.asm
150150
*
151-
* @since 0.1.0
151+
* @since 1.0.0
152152
*/
153153
.macro Inc16(address) {
154154
inc16 address
@@ -175,7 +175,7 @@
175175
*
176176
* @note Use c128lib_Dec16 in math-global.asm
177177
*
178-
* @since 0.1.0
178+
* @since 1.0.0
179179
*/
180180
.macro Dec16(address) {
181181
dec16 address
@@ -205,7 +205,7 @@
205205
*
206206
* @note Use c128lib_div16By16 in math-global.asm
207207
*
208-
* @since 0.1.0
208+
* @since 1.0.0
209209
*/
210210
.macro Div16By16(dividend, divisor, remainder) {
211211
lda #0
@@ -254,7 +254,7 @@
254254
*
255255
* @note Use c128lib_Div16By8 in math-global.asm
256256
*
257-
* @since 0.1.0
257+
* @since 1.0.0
258258
*/
259259
.macro Div16By8(dividend, divisor, remainder) {
260260
lda #0

0 commit comments

Comments
 (0)