From b8ce411292e3855e88a9abda5370a280a206a550 Mon Sep 17 00:00:00 2001 From: James Harris Date: Mon, 13 Feb 2017 23:56:53 +0000 Subject: [PATCH 1/9] Add CONTRIBUTING --- CONTRIBUTING.md | 61 ++++++++++++++++++++ README.md | 150 +++++++++++++++++++++++++++--------------------- README.zh_cn.md | 2 +- README.zh_tw.md | 2 +- 4 files changed, 149 insertions(+), 66 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..306c47e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,61 @@ +# Contributing +The goal is to be a repository for the original Apollo 11 source +code. + +As such, [Pull Requests][0] are welcome for any issues identified +between the transcriptions in this repository and the GAP scans for +[Luminary 099][1] and [Comanche 055][2], as well as any missing +files. + +## How to Contribute + +## Guidelines +### Comments +- Comments in the transcribed code should match 1:1 with the +respective image. + - This could involve creating a deliberate typo or removing/adding + an entire comment. + +### Line breaks +- Line breaks **with** `R0000` in column 1 should match 1:1. +- Line breaks **without** `R0000` in column 1 should only contain 1 +to 2 blank lines in a row. Lines with `R0000` do not count towards +this. + - If there are more than 2 blank lines breaks, strip the extra + line breaks. + - Lines with `R0000` in column 1 do not count towards this number. + - In the source images, these were created by an unprinted digit + in column 8. A 2 there forced a double space (single blank line) + and a 3 forced a triple space (double blank line). Values 4-8 were + defined but never used. Read more about it in #159 + +## Formatting + +[AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] for Atom + will ensure you're using the correct formatting automatically. + +[AGC Assembly][3] for Visual Studio Code provides language-specific +settings overrides to add to your user settings [here][6]. + +- Use tab indentation +- Use tab width of 8 +- Trim trailing whitespace + +## Useful Extensions + +GitHub has syntax support for the AGC assembly language built-in. +Unfortunately your code editor will not. Luckily there is a language +extension that provides syntax highlighting for the following +editors: +- [Visual Studio Code][3] +- [Sublime Text 3][4] +- [Atom][5] + +[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 \ No newline at end of file diff --git a/README.md b/README.md index 44cc59b..d02c157 100644 --- a/README.md +++ b/README.md @@ -1,83 +1,105 @@ Apollo-11 ========= -*Also available in: [English](README.md), [简体中文](README.zh_cn.md), [正體中文](README.zh_tw.md).* +*Available in: [English][EN], [简体中文][ZH_CN], [正體中文][ZH_TW].* -Original Apollo 11 guidance computer (AGC) source code for Command Module (Comanche055) and Lunar Module (Luminary099). Digitized by the folks at [Virtual AGC](http://www.ibiblio.org/apollo/) and [MIT Museum](http://web.mit.edu/museum/). The goal is to be a repo for the original Apollo 11 source code. As such, PRs are welcome for any issues identified between the transcriptions in this repository and the original source scans for [Luminary 099](http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/) and [Comanche 055](http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/), as well as any files I may have missed. -##Compilation -If you are interested in compiling the original source code, check out [Virtual AGC](https://github.com/rburkey2005/virtualagc). +Original Apollo 11 guidance computer (AGC) source code for Command +Module (Comanche055) and Lunar Module (Luminary099). Digitized by +the folks at [Virtual AGC][0] and [MIT Museum][1]. The goal is to be +a repo for the original Apollo 11 source code. As such, PRs are +welcome for any issues identified between the transcriptions in this +repository and the original source scans for [Luminary 099][2] and +[Comanche 055][3], as well as any files I may have missed. -##Attribution +## Contributing +Please read **[CONTRIBUTING][4]** before opening a pull request. - Copyright: Public domain. - Filename: CONTRACT_AND_APPROVALS.agc - Purpose: Part of the source code for Colossus 2A, AKA Comanche 055. - It is part of the source code for the Command Module's (CM) - Apollo Guidance Computer (AGC), for Apollo 11. - Assembler: yaYUL - Contact: Ron Burkey . - Website: www.ibiblio.org/apollo. - Mod history: 2009-05-06 RSB Transcribed from page images. +## Compiling +If you are interested in compiling the original source code, check +out [Virtual AGC][5]. - This source code has been transcribed or otherwise adapted from digitized - images of a hardcopy from the MIT Museum. The digitization was performed - by Paul Fjeld, and arranged for by Deborah Douglas of the Museum. Many - thanks to both. The images (with suitable reduction in storage size and - consequent reduction in image quality as well) are available online at - www.ibiblio.org/apollo. If for some reason you find that the images are - illegible, contact me at info@sandroid.org about getting access to the - (much) higher-quality images which Paul actually created. +## Attribution +```plain +Copyright: Public domain. +Filename: CONTRACT_AND_APPROVALS.agc +Purpose: Part of the source code for Colossus 2A, AKA Comanche 055. + It is part of the source code for the Command Module's (CM) + Apollo Guidance Computer (AGC), for Apollo 11. +Assembler: yaYUL +Contact: Ron Burkey . +Website: www.ibiblio.org/apollo. +Mod history: 2009-05-06 RSB Transcribed from page images. - Notations on the hardcopy document read, in part: +This source code has been transcribed or otherwise adapted from digitized +images of a hardcopy from the MIT Museum. The digitization was performed +by Paul Fjeld, and arranged for by Deborah Douglas of the Museum. Many +thanks to both. The images (with suitable reduction in storage size and +consequent reduction in image quality as well) are available online at +www.ibiblio.org/apollo. If for some reason you find that the images are +illegible, contact me at info@sandroid.org about getting access to the +(much) higher-quality images which Paul actually created. - Assemble revision 055 of AGC program Comanche by NASA - 2021113-051. 10:28 APR. 1, 1969 +Notations on the hardcopy document read, in part: - Page 1 +Assemble revision 055 of AGC program Comanche by NASA +2021113-051. 10:28 APR. 1, 1969 - #************************************************************************ - # * - # THIS AGC PROGRAM SHALL ALSO BE REFERRED TO AS: * - # * - # * - # COLOSSUS 2A * - # * - # * - # THIS PROGRAM IS INTENDED FOR USE IN THE CM AS SPECIFIED * - # IN REPORT R-577. THIS PROGRAM WAS PREPARED UNDER DSR * - # PROJECT 55-23870, SPONSORED BY THE MANNED SPACECRAFT * - # CENTER OF THE NATIONAL AERONAUTICS AND SPACE * - # ADMINISTRATION THROUGH CONTRACT NAS 9-4065 WITH THE * - # INSTRUMENTATION LABORATORY, MASSACHUSETTS INSTITUTE OF * - # TECHNOLOGY, CAMBRIDGE, MASS. * - # * - #************************************************************************ +Page 1 + +#************************************************************************ +# * +# THIS AGC PROGRAM SHALL ALSO BE REFERRED TO AS: * +# * +# * +# COLOSSUS 2A * +# * +# * +# THIS PROGRAM IS INTENDED FOR USE IN THE CM AS SPECIFIED * +# IN REPORT R-577. THIS PROGRAM WAS PREPARED UNDER DSR * +# PROJECT 55-23870, SPONSORED BY THE MANNED SPACECRAFT * +# CENTER OF THE NATIONAL AERONAUTICS AND SPACE * +# ADMINISTRATION THROUGH CONTRACT NAS 9-4065 WITH THE * +# INSTRUMENTATION LABORATORY, MASSACHUSETTS INSTITUTE OF * +# TECHNOLOGY, CAMBRIDGE, MASS. * +# * +#************************************************************************ - SUBMITTED: MARGARET H. HAMILTON DATE: 28 MAR 69 - M.H.HAMILTON, COLOSSUS PROGRAMMING LEADER - APOLLO GUIDANCE AND NAVIGATION +SUBMITTED: MARGARET H. HAMILTON DATE: 28 MAR 69 + M.H.HAMILTON, COLOSSUS PROGRAMMING LEADER + APOLLO GUIDANCE AND NAVIGATION - APPROVED: DANIEL J. LICKLY DATE: 28 MAR 69 - D.J.LICKLY, DIRECTOR, MISSION PROGRAM DEVELOPMENT - APOLLO GUIDANCE AND NAVIGATION PROGRAM +APPROVED: DANIEL J. LICKLY DATE: 28 MAR 69 + D.J.LICKLY, DIRECTOR, MISSION PROGRAM DEVELOPMENT + APOLLO GUIDANCE AND NAVIGATION PROGRAM - APPROVED: FRED H. MARTIN DATE: 28 MAR 69 - FRED H. MARTIN, COLOSSUS PROJECT MANAGER - APOLLO GUIDANCE AND NAVIGATION PROGRAM +APPROVED: FRED H. MARTIN DATE: 28 MAR 69 + FRED H. MARTIN, COLOSSUS PROJECT MANAGER + APOLLO GUIDANCE AND NAVIGATION PROGRAM - APPROVED: NORMAN E. SEARS DATE: 28 MAR 69 - N.E. SEARS, DIRECTOR, MISSION DEVELOPMENT - APOLLO GUIDANCE AND NAVIGATION PROGRAM +APPROVED: NORMAN E. SEARS DATE: 28 MAR 69 + N.E. SEARS, DIRECTOR, MISSION DEVELOPMENT + APOLLO GUIDANCE AND NAVIGATION PROGRAM - APPROVED: RICHARD H. BATTIN DATE: 28 MAR 69 - R.H. BATTIN, DIRECTOR, MISSION DEVELOPMENT - APOLLO GUIDANCE AND NAVIGATION PROGRAM +APPROVED: RICHARD H. BATTIN DATE: 28 MAR 69 + R.H. BATTIN, DIRECTOR, MISSION DEVELOPMENT + APOLLO GUIDANCE AND NAVIGATION PROGRAM - APPROVED: DAVID G. HOAG DATE: 28 MAR 69 - D.G. HOAG, DIRECTOR - APOLLO GUIDANCE AND NAVIGATION PROGRAM +APPROVED: DAVID G. HOAG DATE: 28 MAR 69 + D.G. HOAG, DIRECTOR + APOLLO GUIDANCE AND NAVIGATION PROGRAM - APPROVED: RALPH R. RAGAN DATE: 28 MAR 69 - R.R. RAGAN, DEPUTY DIRECTOR - INSTRUMENTATION LABORATORY +APPROVED: RALPH R. RAGAN DATE: 28 MAR 69 + R.R. RAGAN, DEPUTY DIRECTOR + INSTRUMENTATION LABORATORY +``` + +[EN]:README.md +[ZH_CN]:README.zh_cn.md +[ZH_TW]:README.zh_tw.md +[0]:http://www.ibiblio.org/apollo/ +[1]:http://web.mit.edu/museum/ +[2]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/ +[3]:http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/ +[4]:https://github.com/chrislgarry/Apollo-11/blob/master/CONTRIBUTING.md +[5]:https://github.com/rburkey2005/virtualagc diff --git a/README.zh_cn.md b/README.zh_cn.md index 75b5eb2..f41d8a6 100644 --- a/README.zh_cn.md +++ b/README.zh_cn.md @@ -1,7 +1,7 @@ 阿波罗11号 ========= -*Also available in: [English](README.md), [简体中文](README.zh_cn.md), [正體中文](README.zh_tw.md).* +*Available in: [English](README.md), [简体中文](README.zh_cn.md), [正體中文](README.zh_tw.md).* 阿波罗11号制导计算机(AGC)中指令模块(Comanche055)和登月模块(Luminary099)原始代码。由[虚拟 AGC](http://www.ibiblio.org/apollo/) 和 [MIT 科学博物馆](http://web.mit.edu/museum/) 的伙计们完成电子化。本仓库的目的是存储阿波罗11号原始代码。当然,倘若在本仓库或原始代码扫描件[Luminary 099](http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/) 及 [Comancheion 055](http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/) 发现问题,或者任何我可能漏掉的文件,欢迎提交PRs。 diff --git a/README.zh_tw.md b/README.zh_tw.md index 0447b22..96b55bb 100644 --- a/README.zh_tw.md +++ b/README.zh_tw.md @@ -1,7 +1,7 @@ 阿波羅11號 ========= -*Also available in: [English](README.md), [简体中文](README.zh_cn.md), [正體中文](README.zh_tw.md).* +*Available in: [English](README.md), [简体中文](README.zh_cn.md), [正體中文](README.zh_tw.md).* 原版的阿波羅11號電腦(Apollo 11 Guidance computer, AGC)用於駕駛艙(Comanche055)和登月艙(Luminary099)的原始碼,由 [Virtual AGC](http://www.ibiblio.org/apollo/) 及 [MIT Museum](http://web.mit.edu/museum/) 的工作人員數位化,目的在於建立一個存放阿波羅11號原始碼的程式庫。正因如此,若你在文件抄錄上或在查看 [Luminary 099](http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/) 和 [Comanche 055](http://www.ibiblio.org/apollo/ScansForConversion/Comanche055/) 這兩部分原始碼過程中遇到問題的話,我們歡迎你能提起一個 PR。當然,也包括那些我可能遺忘的文件。 From a42cfd230e9504b5add8a3804fcbc16bcbabfd5b Mon Sep 17 00:00:00 2001 From: James Harris Date: Tue, 14 Feb 2017 00:04:07 +0000 Subject: [PATCH 2/9] Remove duplication --- CONTRIBUTING.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 306c47e..5a8df4a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,14 +1,4 @@ # Contributing -The goal is to be a repository for the original Apollo 11 source -code. - -As such, [Pull Requests][0] are welcome for any issues identified -between the transcriptions in this repository and the GAP scans for -[Luminary 099][1] and [Comanche 055][2], as well as any missing -files. - -## How to Contribute - ## Guidelines ### Comments - Comments in the transcribed code should match 1:1 with the @@ -19,21 +9,19 @@ respective image. ### Line breaks - Line breaks **with** `R0000` in column 1 should match 1:1. - Line breaks **without** `R0000` in column 1 should only contain 1 -to 2 blank lines in a row. Lines with `R0000` do not count towards -this. +to 2 blank lines in a row. - If there are more than 2 blank lines breaks, strip the extra line breaks. - Lines with `R0000` in column 1 do not count towards this number. - In the source images, these were created by an unprinted digit in column 8. A 2 there forced a double space (single blank line) and a 3 forced a triple space (double blank line). Values 4-8 were - defined but never used. Read more about it in #159 + defined but never used. Read more about it in chrislgarry/Apollo-11/#159 ## Formatting - [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] for Atom will ensure you're using the correct formatting automatically. - + [AGC Assembly][3] for Visual Studio Code provides language-specific settings overrides to add to your user settings [here][6]. From 92af214239cb0fdcff9b3af7da664ac2416dc41e Mon Sep 17 00:00:00 2001 From: James Harris Date: Tue, 14 Feb 2017 00:07:17 +0000 Subject: [PATCH 3/9] Add EditorConfig --- .editorconfig | 15 +++++++++++++++ CONTRIBUTING.md | 14 +++++++------- README.md | 10 +++++----- 3 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b2bec00 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.agc] +indent_style = tab +tab_width = 8 + +[*.md] +indent_style = space +indent_size = 2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5a8df4a..813752d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,8 +1,8 @@ # Contributing ## Guidelines ### Comments -- Comments in the transcribed code should match 1:1 with the -respective image. +- Comments in the transcribed code should match 1:1 with the +respective image. - This could involve creating a deliberate typo or removing/adding an entire comment. @@ -10,7 +10,7 @@ respective image. - Line breaks **with** `R0000` in column 1 should match 1:1. - Line breaks **without** `R0000` in column 1 should only contain 1 to 2 blank lines in a row. - - If there are more than 2 blank lines breaks, strip the extra + - If there are more than 2 blank lines breaks, strip the extra line breaks. - Lines with `R0000` in column 1 do not count towards this number. - In the source images, these were created by an unprinted digit @@ -19,9 +19,9 @@ to 2 blank lines in a row. defined but never used. Read more about it in chrislgarry/Apollo-11/#159 ## Formatting -[AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] for Atom +GitHub, [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] for Atom will ensure you're using the correct formatting automatically. - + [AGC Assembly][3] for Visual Studio Code provides language-specific settings overrides to add to your user settings [here][6]. @@ -33,7 +33,7 @@ settings overrides to add to your user settings [here][6]. GitHub has syntax support for the AGC assembly language built-in. Unfortunately your code editor will not. Luckily there is a language -extension that provides syntax highlighting for the following +extension that provides syntax highlighting for the following editors: - [Visual Studio Code][3] - [Sublime Text 3][4] @@ -46,4 +46,4 @@ editors: [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 \ No newline at end of file +[7]:https://github.com/chrislgarry/Apollo-11/issues/159 diff --git a/README.md b/README.md index d02c157..08159cc 100644 --- a/README.md +++ b/README.md @@ -3,19 +3,19 @@ Apollo-11 *Available in: [English][EN], [简体中文][ZH_CN], [正體中文][ZH_TW].* -Original Apollo 11 guidance computer (AGC) source code for Command -Module (Comanche055) and Lunar Module (Luminary099). Digitized by +Original Apollo 11 guidance computer (AGC) source code for Command +Module (Comanche055) and Lunar Module (Luminary099). Digitized by the folks at [Virtual AGC][0] and [MIT Museum][1]. The goal is to be -a repo for the original Apollo 11 source code. As such, PRs are +a repo for the original Apollo 11 source code. As such, PRs are welcome for any issues identified between the transcriptions in this -repository and the original source scans for [Luminary 099][2] and +repository and the original source scans for [Luminary 099][2] and [Comanche 055][3], as well as any files I may have missed. ## Contributing Please read **[CONTRIBUTING][4]** before opening a pull request. ## Compiling -If you are interested in compiling the original source code, check +If you are interested in compiling the original source code, check out [Virtual AGC][5]. ## Attribution From d33ea9828d17a07f49ff20898955008cc7c6404d Mon Sep 17 00:00:00 2001 From: James Harris Date: Tue, 14 Feb 2017 00:10:18 +0000 Subject: [PATCH 4/9] Reorder some segments --- CONTRIBUTING.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 813752d..9b7ad5b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ # Contributing -## Guidelines +## What do I check? ### Comments - Comments in the transcribed code should match 1:1 with the respective image. @@ -8,19 +8,21 @@ respective image. ### Line breaks - Line breaks **with** `R0000` in column 1 should match 1:1. -- Line breaks **without** `R0000` in column 1 should only contain 1 -to 2 blank lines in a row. +- Line breaks **without** `R0000` in column 1 should contain only 1 +or 2 blank lines in a row. + - Lines with `R0000` in column 1 do not count towards this. - If there are more than 2 blank lines breaks, strip the extra line breaks. - - Lines with `R0000` in column 1 do not count towards this number. - In the source images, these were created by an unprinted digit in column 8. A 2 there forced a double space (single blank line) and a 3 forced a triple space (double blank line). Values 4-8 were - defined but never used. Read more about it in chrislgarry/Apollo-11/#159 + defined but never used. Read more about it in + chrislgarry/Apollo-11/#159 ## Formatting -GitHub, [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] for Atom - will ensure you're using the correct formatting automatically. +GitHub, [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] +for Atom will ensure you're using the correct formatting +automatically. [AGC Assembly][3] for Visual Studio Code provides language-specific settings overrides to add to your user settings [here][6]. From 24d301fafb2673580f14034fcd4c9a62b42caaad Mon Sep 17 00:00:00 2001 From: James Harris Date: Tue, 14 Feb 2017 00:20:44 +0000 Subject: [PATCH 5/9] Un-bold CONTRIBUTING --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 08159cc..e89d6f3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ repository and the original source scans for [Luminary 099][2] and [Comanche 055][3], as well as any files I may have missed. ## Contributing -Please read **[CONTRIBUTING][4]** before opening a pull request. +Please read [CONTRIBUTING.md][4] before opening a pull request. ## Compiling If you are interested in compiling the original source code, check From 3d91c64e9522090b4a2194bbeb888d005d774b9c Mon Sep 17 00:00:00 2001 From: James Harris Date: Tue, 14 Feb 2017 11:58:40 +0000 Subject: [PATCH 6/9] Fix link to #159 --- CONTRIBUTING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9b7ad5b..f74cdb2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,8 +16,7 @@ or 2 blank lines in a row. - In the source images, these were created by an unprinted digit in column 8. A 2 there forced a double space (single blank line) and a 3 forced a triple space (double blank line). Values 4-8 were - defined but never used. Read more about it in - chrislgarry/Apollo-11/#159 + defined but never used. Read more about it in [#159][7] ## Formatting GitHub, [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] From f4d7d79cd044d0903ae9f9ef91cc6319fcd5e211 Mon Sep 17 00:00:00 2001 From: James Harris Date: Wed, 22 Feb 2017 04:55:56 +0000 Subject: [PATCH 7/9] Update with example and ordering --- CONTRIBUTING.md | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f74cdb2..bcf7e3f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,22 +1,39 @@ # Contributing ## What do I check? ### Comments -- Comments in the transcribed code should match 1:1 with the -respective image. +- Comments in the transcribed code should match the scans exactly - This could involve creating a deliberate typo or removing/adding an entire comment. ### Line breaks -- Line breaks **with** `R0000` in column 1 should match 1:1. -- Line breaks **without** `R0000` in column 1 should contain only 1 +- Line breaks *with* `R0000` in column 1 should match the scans exactly. +- Line breaks *with**__out__* `R0000` in column 1 should contain only 1 or 2 blank lines in a row. - - Lines with `R0000` in column 1 do not count towards this. - If there are more than 2 blank lines breaks, strip the extra line breaks. + - Lines with `R0000` in column 1 do not count towards this. - In the source images, these were created by an unprinted digit in column 8. A 2 there forced a double space (single blank line) and a 3 forced a triple space (double blank line). Values 4-8 were defined but never used. Read more about it in [#159][7] + +For example the following: +```plain +R0819 SUBROUTINE TO SKIP... +R0820 + + + + 0821 LAMPTEST CS IMODES33 +``` +Should become: +```plain +R0819 SUBROUTINE TO SKIP... +R0820 + + + 0820 LAMPTEST CS IMODES33 +``` ## Formatting GitHub, [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] @@ -33,12 +50,12 @@ settings overrides to add to your user settings [here][6]. ## Useful Extensions GitHub has syntax support for the AGC assembly language built-in. -Unfortunately your code editor will not. Luckily there is a language -extension that provides syntax highlighting for the following -editors: -- [Visual Studio Code][3] -- [Sublime Text 3][4] +Unfortunately your code editor will not, however there are +AGC language extensions that provides syntax highlighting for the +following editors: - [Atom][5] +- [Sublime Text 3][4] +- [Visual Studio Code][3] [0]:https://github.com/chrislgarry/Apollo-11/pull/new/master [1]:http://www.ibiblio.org/apollo/ScansForConversion/Luminary099/ From 1b48bc63ac1813dec4105554e6e73649171c5b1d Mon Sep 17 00:00:00 2001 From: James Harris Date: Sun, 5 Mar 2017 18:26:23 +0000 Subject: [PATCH 8/9] Remove note about VSCode formatting VSCode extension no longer requires manually adding settings --- CONTRIBUTING.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bcf7e3f..601927b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,13 +36,11 @@ R0820 ``` ## Formatting -GitHub, [AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] +**Note:** GitHub, [AGC Assembly][3] for Visual Studio Code, +[AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] for Atom will ensure you're using the correct formatting automatically. -[AGC Assembly][3] for Visual Studio Code provides language-specific -settings overrides to add to your user settings [here][6]. - - Use tab indentation - Use tab width of 8 - Trim trailing whitespace From 7d643d379957a7678db294808370794f6e36ddd9 Mon Sep 17 00:00:00 2001 From: James Harris Date: Sun, 5 Mar 2017 18:28:48 +0000 Subject: [PATCH 9/9] Move extensions/formatting to top --- CONTRIBUTING.md | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 601927b..29970b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,22 @@ # Contributing +## Useful Extensions + +GitHub has syntax support for the AGC assembly language built-in. +Unfortunately your code editor will not, however there are +AGC language extensions that provides syntax highlighting for the +following editors: +- [Atom][5] +- [Sublime Text 3][4] +- [Visual Studio Code][3] + +## Formatting +**Note:** GitHub and the 3 extensions listed above will ensure +you're using the correct formatting automatically. + +- Use tab indentation +- Use tab width of 8 +- Trim trailing whitespace + ## What do I check? ### Comments - Comments in the transcribed code should match the scans exactly @@ -35,26 +53,6 @@ R0820 0820 LAMPTEST CS IMODES33 ``` -## Formatting -**Note:** GitHub, [AGC Assembly][3] for Visual Studio Code, -[AGC Assembly][4] for Sublime Text 3 and [Language AGC][5] -for Atom will ensure you're using the correct formatting -automatically. - -- Use tab indentation -- Use tab width of 8 -- Trim trailing whitespace - -## Useful Extensions - -GitHub has syntax support for the AGC assembly language built-in. -Unfortunately your code editor will not, however there are -AGC language extensions that provides syntax highlighting for the -following editors: -- [Atom][5] -- [Sublime Text 3][4] -- [Visual Studio Code][3] - [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/