@henols/c64-re-tools 2.4.0-rc.1 → 2.4.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/skills/c64-docs/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: c64-docs
|
|
3
|
-
description: Writes the documentation of a C64 program. You write the pages by the method of this skill. The script generates the reference pages from the project knowledge and the generated source. The pages put first the development of the program and its copy protection, in depth, with the findings and what each one means in practice. They explain how the program works, with links to the main parts of the source, and they list the releases in short. Use it to document a program after its rebuilt source is identical to the original. Use it to keep the documentation correct after a change to the project knowledge. It does not change the project knowledge, and it does not run the program.
|
|
3
|
+
description: Writes the documentation of a C64 program. You write the pages by the method of this skill. The script generates the reference pages from the project knowledge and the generated source. The pages put first the development of the program and its copy protection, in depth, with the findings and what each one means in practice. They explain how the program works, with links to the main parts of the source, and they list the releases in short. They tell the history of a crack only when the crack left traces in the program. Use it to document a program after its rebuilt source is identical to the original. Use it to keep the documentation correct after a change to the project knowledge. It does not change the project knowledge, and it does not run the program.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# C64 documentation
|
|
@@ -212,7 +212,8 @@ Errors:
|
|
|
212
212
|
- Read the leftover spaces and their comments in the project knowledge. If the knowledge has none, find the leftovers of the development in the program.
|
|
213
213
|
- For two or more releases, compare the releases. Then you can separate the program from the changes of each release.
|
|
214
214
|
- Find each check of the copy protection in the code, and the effect of a failed check.
|
|
215
|
-
-
|
|
215
|
+
- Find the traces of each crack in the program. The bytes that the compare of the releases shows are the start. Examples are a check that the crack changed, a group text in the program, and bytes in memory that the program now uses.
|
|
216
|
+
- Do not examine the intro, the mover or the relocator of a crack. They are not part of the program.
|
|
216
217
|
6. Write each page. Read the code and the knowledge for each fact. When a fact needs a run, run the program in a test run or in the emulator. Explain each part before you name the code. Link only the main parts. Mark each fact with its evidence. Several subagents can write the pages at the same time, one page each. Give each subagent `<skill>/references/page-types.md` and `<skill>/references/style.md`.
|
|
217
218
|
7. Record each new fact in the project knowledge first: a name, a comment, a region or a module. Then the source and the reference show it too. A fact that is only in a page is lost at the next change of the knowledge.
|
|
218
219
|
8. Run `link`. Correct each problem. Then run `link` with `--check`. Make sure that `result` is `PASS`.
|
|
@@ -14,7 +14,16 @@ The most interesting parts for a reader are the development of the program and i
|
|
|
14
14
|
4. **Findings.** The bugs and the facts that a reader does not expect. Write a bulleted list, not a table. Each item has a title in bold, the facts and the evidence. It also has a link to the page with the details. Then tell what the finding means in practice. Examples are what a player sees, what a test or a fix can use, and what a preservation project must know. Mark an idea that no run showed as **Conclusion**.
|
|
15
15
|
5. **How the program works.** A short walk through the program, from the start to the main loop. Tell what the program does at each stage and why. Use one mermaid diagram of the layers and one of the flow of the player. Under the diagrams, a numbered list tells how the layers work together. Link only the entry of each layer, for example the cold start, the main loop and the interrupt. Use about 5 to 8 links in the full section.
|
|
16
16
|
6. **The pages.** A table with one row for each page: the link and one sentence about its content. The sentences have no links to the code.
|
|
17
|
-
7. **The releases.** A
|
|
17
|
+
7. **The releases.** A small table gives each known release: the label, the file and the SHA-256 of the file. Then one line for each crack tells the group, what the crack adds around the program, and the bytes of the program that it changed. When a crack left a trace in the program that is interesting, give it a short paragraph. Tell what the trace is, how you identified it, and what it means in practice. Link the code of the trace one time. A group that left no such trace gets only its line. Do not describe the intro, the mover or the relocator of a crack. They are not part of the program.
|
|
18
|
+
|
|
19
|
+
Examples of traces that are interesting:
|
|
20
|
+
|
|
21
|
+
- A crack changed a check or other code of the program.
|
|
22
|
+
- The program now uses bytes that a crack left in memory.
|
|
23
|
+
- A group made its release from the crack of a different group.
|
|
24
|
+
- A release is a memory dump of a program that ran.
|
|
25
|
+
- A crack put a text or a tag into the program.
|
|
26
|
+
- A crack damaged a part of the program, for example a level that does not load.
|
|
18
27
|
8. **The rebuild.** Which release is the base release, the program of the knowledge. Which changes of the release to the machine state stay, and how the loader sets them. A table of the switches of the project knowledge: the name, the kind, the default and the releases that have the switch on. How to build the default program and each release. Which scenarios compare the original with the rebuild.
|
|
19
28
|
9. **Still open.** What is not known yet, and which run can find it.
|
|
20
29
|
10. **The reference.** One line with a link to `docs/reference/index.md`.
|
|
@@ -70,6 +79,8 @@ flowchart TB
|
|
|
70
79
|
|
|
71
80
|
<A small table of the releases, and one line for each crack.>
|
|
72
81
|
|
|
82
|
+
<For each crack with a trace in the program: one short paragraph about the trace, how you know, and what it means in practice.>
|
|
83
|
+
|
|
73
84
|
## The rebuild
|
|
74
85
|
|
|
75
86
|
...
|
|
@@ -221,7 +232,7 @@ One page, `docs/protection.md`, that explains the copy protection of the program
|
|
|
221
232
|
1. **The scheme.** How the original protection works as a whole. Tell about the disk or the loader, and the marks that the loader leaves in memory. Tell which keys the program compares.
|
|
222
233
|
2. **Each check.** For each check, tell where it is and when it runs. Tell what it compares, and how the program hides it. Link the code of the check one time. Use a table for a summary of the checks, without links.
|
|
223
234
|
3. **The effect of a failed check.** What the program does when a check fails. Examples are a crash at once, a slow change of code, damaged data and a wipe of memory. Tell how long the effect takes to show.
|
|
224
|
-
4. **The releases.** In one or two sentences: which checks still run in each release.
|
|
235
|
+
4. **The releases.** In one or two sentences: which checks still run in each release. When a crack changed bytes of the program to stop a check, tell which bytes, and link the code of the change one time.
|
|
225
236
|
5. **The rebuild.** The switch that turns the protection off, the bytes that it changes, and the scenarios that show that the program runs without it.
|
|
226
237
|
6. **Still open.** The checks that no run reached, and the run that can reach them.
|
|
227
238
|
|