2020-01-07 17:48:10 +00:00
|
|
|
|
# Contributing
|
|
|
|
|
|
|
|
|
|
:crossed_flags:
|
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-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-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-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-01-07 17:48:10 +00:00
|
|
|
|
[KO_KR]:CONTRIBUTING.ko_kr.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-01 23:29:19 +00:00
|
|
|
|
- [阿波罗11号制导计算机(AGC)中指令模块打印输出][8]
|
|
|
|
|
- [阿波罗11号制导计算机(AGC)中登月模块打印输出][9]
|
2020-01-07 17:48:10 +00:00
|
|
|
|
|
|
|
|
|
## 有用的扩展
|
|
|
|
|
|
|
|
|
|
GitHub内建会支持AGC汇编语言语法。不幸的是,你的代码编辑器不会,但有些
|
2020-02-21 01:40:19 +00:00
|
|
|
|
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]
|
|
|
|
|
|
|
|
|
|
† Supports automatic formatting
|
|
|
|
|
|
|
|
|
|
[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-01-07 17:48:10 +00:00
|
|
|
|
**注意**:GitHub和上面列出的3个扩展插件会确保您自动使用正确的格式。
|
|
|
|
|
|
|
|
|
|
- 使用TAB进行缩进
|
|
|
|
|
- TAB宽度为8个字符
|
|
|
|
|
- 去掉末尾的空格
|
|
|
|
|
|
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-01-07 17:48:10 +00:00
|
|
|
|
- 转录代码中的注释应与扫描完全匹配
|
|
|
|
|
- 这可能涉及故意创建的拼写错误或删除/添加整个评论
|
|
|
|
|
|
|
|
|
|
### 换行
|
2020-06-01 23:29:19 +00:00
|
|
|
|
|
2020-01-07 17:48:10 +00:00
|
|
|
|
- 第1列带`R0000`的换行符应与扫描完全匹配。
|
|
|
|
|
- 第1列中带**__out__* `R0000` 的换行符应该只包含一个或2个连续空行。
|
|
|
|
|
- 如果有超过2个空行换行,请删除额外的空白行换行。
|
|
|
|
|
- 第1列中带`R0000`的行不计入此。
|
|
|
|
|
- 在原始图片中,这些是由一个未打印的数字分8列创建. A 2 处强制两个空格(单个空白行),A 3 强制三个空格(双空行)。值4-8是被定义但从未使用过。可在[#159][7]查看更多
|
|
|
|
|
|
|
|
|
|
例如以下内容:
|
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-01-07 17:48:10 +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-01-07 17:48:10 +00:00
|
|
|
|
- 字符串中两个字符之间的空格应遵循以下约定 (可在 [#316][10]查阅相关讨论):
|
|
|
|
|
- 新单词另起一个空格.
|
|
|
|
|
- 新句另起两个空格.
|
|
|
|
|
- 缩进占三个空格.
|
2020-02-21 01:40:19 +00:00
|
|
|
|
|
2020-01-07 17:48:10 +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-01-07 17:48:10 +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.
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## 谨记
|
|
|
|
|
|
|
|
|
|
在制作PR之前,请确保您的更改与原始的扫描打印输出一致!
|
|
|
|
|
|
|
|
|
|
[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
|