2020-06-23 12:02:27 +00:00
|
|
|
|
# 贡献
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
2020-06-02 00:13:46 +00:00
|
|
|
|
🎌
|
2020-10-04 15:47:13 +00:00
|
|
|
|
[Čeština][CZ],
|
2020-05-05 17:30:37 +00:00
|
|
|
|
[Deutsch][DE],
|
2020-01-07 17:48:10 +00:00
|
|
|
|
[English][EN],
|
2020-02-26 20:38:18 +00:00
|
|
|
|
[Español][ES],
|
2020-03-01 20:32:10 +00:00
|
|
|
|
[Français][FR],
|
2020-08-01 01:03:24 +00:00
|
|
|
|
[Kurdi][KU],
|
2020-02-26 10:18:07 +00:00
|
|
|
|
[Nederlands][NL],
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[Português][PT_BR],
|
|
|
|
|
[Türkçe][TR],
|
2020-01-07 17:48:10 +00:00
|
|
|
|
[العربية][AR],
|
2020-08-17 18:19:05 +00:00
|
|
|
|
[日本語][JA],
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[正體中文][ZH_TW],
|
|
|
|
|
**简体中文**,
|
|
|
|
|
[한국어][KO_KR]
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[AR]:CONTRIBUTING.ar.md
|
2020-10-04 15:47:13 +00:00
|
|
|
|
[CZ]:CONTRIBUTING.cz.md
|
2020-05-05 17:30:37 +00:00
|
|
|
|
[DE]:CONTRIBUTING.de.md
|
2020-01-07 17:48:10 +00:00
|
|
|
|
[EN]:CONTRIBUTING.md
|
2020-02-26 20:38:18 +00:00
|
|
|
|
[ES]:CONTRIBUTING.es.md
|
2020-02-27 18:21:57 +00:00
|
|
|
|
[FR]:CONTRIBUTING.fr.md
|
2020-08-17 18:19:05 +00:00
|
|
|
|
[JA]:CONTRIBUTING.ja.md
|
2020-01-07 17:48:10 +00:00
|
|
|
|
[KO_KR]:CONTRIBUTING.ko_kr.md
|
2020-08-01 01:03:24 +00:00
|
|
|
|
[KU]:CONTRIBUTING.ku.md
|
2020-02-26 10:18:07 +00:00
|
|
|
|
[NL]:CONTRIBUTING.nl.md
|
2020-02-27 18:31:08 +00:00
|
|
|
|
[PT_BR]:CONTRIBUTING.pt_br.md
|
|
|
|
|
[TR]:CONTRIBUTING.tr.md
|
|
|
|
|
[ZH_CN]:CONTRIBUTING.zh_cn.md
|
|
|
|
|
[ZH_TW]:CONTRIBUTING.zh_tw.md
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
|
|
|
|
本仓库中的源代码来自对纸质打印输出文件的手动数字化,所以会不小心引入一些拼写错误和其他差异。这些代码应该被修正以使其与原纸质打印输出文件内容保持一致:
|
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
- [阿波罗 11 号制导计算机(AGC)中指令模块打印输出][8]
|
|
|
|
|
- [阿波罗 11 号制导计算机(AGC)中登月模块打印输出][9]
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
|
|
|
|
## 有用的扩展
|
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
GitHub 内建支持 AGC 汇编语言语法。不幸的是,你的代码编辑器并不支持,但有些
|
|
|
|
|
AGC 语言的扩展插件可以为下列的编辑器提供语法高亮显示支持:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-02-21 01:40:19 +00:00
|
|
|
|
- [Atom][Atom]†
|
|
|
|
|
- [CodeBlocks][CodeBlocks]
|
|
|
|
|
- [Eclipse][Eclipse]
|
|
|
|
|
- [Kate][Kate]
|
|
|
|
|
- [ProgrammersNotepad][ProgrammersNotepad]
|
|
|
|
|
- [Sublime Text 3][Sublime Text]†
|
|
|
|
|
- [TextPad][TextPad]
|
|
|
|
|
- [Vim][Vim]
|
|
|
|
|
- [Visual Studio Code][VisualStudioCode]†
|
|
|
|
|
- [jEdit][jEdit]
|
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
† 符号表示支持自动格式化
|
2020-02-21 01:40:19 +00:00
|
|
|
|
|
|
|
|
|
[Atom]:https://github.com/Alhadis/language-agc
|
|
|
|
|
[CodeBlocks]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/CodeBlocks
|
|
|
|
|
[Eclipse]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/Eclipse
|
|
|
|
|
[Kate]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/Kate
|
|
|
|
|
[ProgrammersNotepad]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/ProgrammersNotepad
|
|
|
|
|
[Sublime Text]:https://github.com/jimlawton/AGC-Assembly
|
|
|
|
|
[TextPad]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/TextPad
|
|
|
|
|
[Vim]:https://github.com/wsdjeg/vim-assembly
|
|
|
|
|
[VisualStudioCode]:https://github.com/wopian/agc-assembly
|
|
|
|
|
[jEdit]:https://github.com/virtualagc/virtualagc/tree/master/Contributed/SyntaxHighlight/jEdit
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
|
|
|
|
## 格式化
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
**注意**:GitHub 和上面列出的3个扩展插件会确保您自动使用正确的格式。
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
- 使用 TAB 进行缩进
|
|
|
|
|
- TAB 宽度为 8 个字符
|
2020-01-07 17:48:10 +00:00
|
|
|
|
- 去掉末尾的空格
|
|
|
|
|
|
2020-06-01 23:29:19 +00:00
|
|
|
|
## 我该怎么检查?
|
|
|
|
|
|
2020-01-07 17:48:10 +00:00
|
|
|
|
原始的扫描打印输出文件与此存储库中的源码之间存在的差异,包括:
|
|
|
|
|
|
|
|
|
|
### 注释
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
- 转录代码中的注释应与扫描件完全匹配
|
2020-01-07 17:48:10 +00:00
|
|
|
|
- 这可能涉及故意创建的拼写错误或删除/添加整个评论
|
|
|
|
|
|
|
|
|
|
### 换行
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
- 第 1 列 *带* `R0000` 的换行符应与扫描件完全匹配。
|
|
|
|
|
- 第 1 列 *不**__带__* `R0000` 的换行符应该只包含 1 个或 2 个连续空行。
|
|
|
|
|
- 如果有超过 2 个空行换行,请删除额外的空白行换行。
|
|
|
|
|
- 第 1 列中带 `R0000` 的行不计入此。
|
|
|
|
|
- 在原始图片中,这些是由一个未打印的数字分 8 列创建。A 2 处强制两个空格(单个空白行),A 3 处强制三个空格(双空行)。值 4-8 被定义但从未使用过。可在 [#159][7] 查看细节
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
例如以下内容:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:48:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
R0819 SUBROUTINE TO SKIP...
|
|
|
|
|
R0820
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0821 LAMPTEST CS IMODES33
|
|
|
|
|
```
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
应该改为:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:48:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
R0819 SUBROUTINE TO SKIP...
|
|
|
|
|
R0820
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0820 LAMPTEST CS IMODES33
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 空格
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
- 字符串中两个字符之间的空格应遵循以下约定 (可在 [#316][10] 查阅相关讨论):
|
2020-01-07 17:48:10 +00:00
|
|
|
|
- 新单词另起一个空格.
|
|
|
|
|
- 新句另起两个空格.
|
|
|
|
|
- 缩进占三个空格.
|
2020-02-21 01:40:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
例如以下内容:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:48:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
1) FOO BAR BAZ QUX QUUX QUUZ. CORGE, GRAULT,
|
|
|
|
|
GARPLY, WALDO.
|
|
|
|
|
```
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
应该改为:
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:48:10 +00:00
|
|
|
|
```plain
|
|
|
|
|
1) FOO BAR BAZ QUX QUUX QUUZ. CORGE, GRAULT,
|
|
|
|
|
GARPLY, WALDO.
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 谨记
|
|
|
|
|
|
2020-06-23 12:02:27 +00:00
|
|
|
|
在提交 PR 之前,请确保您的更改与原始的扫描件打印输出一致!
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
|
|
|
|
[0]:https://github.com/chrislgarry/Apollo-11/pull/new/master
|
|
|
|
|
[1]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/
|
|
|
|
|
[2]:http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/
|
|
|
|
|
[3]:https://github.com/wopian/agc-assembly
|
|
|
|
|
[4]:https://github.com/jimlawton/AGC-Assembly
|
|
|
|
|
[5]:https://github.com/Alhadis/language-agc
|
|
|
|
|
[6]:https://github.com/wopian/agc-assembly#user-settings
|
|
|
|
|
[7]:https://github.com/chrislgarry/Apollo-11/issues/159
|
|
|
|
|
[8]:http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/
|
|
|
|
|
[9]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/
|
|
|
|
|
[10]:https://github.com/chrislgarry/Apollo-11/pull/316#pullrequestreview-102892741
|