[PIC®/AVR®/dsPIC®产品] 阿波罗11号飞船使用的三角函数代码欣赏

[复制链接]
 楼主| gaoyang9992006 发表于 2021-9-24 08:39 | 显示全部楼层 |阅读模式
此代码以 AGC 装配语言编写,将在阿波罗制导计算机 (AGC) 中运行。AGC是为阿波罗计划制作的,安装在每一个阿波罗指挥舱(CM)和阿波罗登月舱(LM)上。AGC为航天器的制导、导航和控制提供了计算和电子接口。
AGC 的用户界面是 DSKY(显示屏和键盘,通常发音为"DIS-kee")。DSKY 拥有一系列指示灯、数字显示屏和计算器式键盘。命令以两位数的数字输入:动词和名词。动词描述了要执行的操作类型,名词指定哪些数据受动词命令指定的操作的影响。

阿波罗11号测量的实现   
功能玛格丽特·汉密尔顿  1969年3月 这个代码是马加雷特. 汉密尔顿提交的三角测量功能是导航的必要功能,两者是通信模式 -  乌兰德 · 卢纳兰德 · 第一次人类登陆月亮。



1Codeisavailableat    https://github.com/chrislgarry/A ... ION_SUBROUTINES.agc
  1. # Copyright:        Public domain.
  2. # Filename:        SINGLE_PRECISION_SUBROUTINES.agc
  3. # Purpose:         Part of the source code for Luminary 1A build 099.
  4. #                It is part of the source code for the Lunar Module's (LM)
  5. #                Apollo Guidance Computer (AGC), for Apollo 11.
  6. # Assembler:        yaYUL
  7. # Contact:        Ron Burkey <info@sandroid.org>.
  8. # Website:        www.ibiblio.org/apollo.
  9. # Pages:        1102
  10. # Mod history:        2009-05-25 RSB        Adapted from the corresponding
  11. #                                Luminary131 file, using page
  12. #                                images from Luminary 1A.
  13. #                2010-12-31 JL        Fixed page number comment.
  14. #
  15. # This source code has been transcribed or otherwise adapted from
  16. # digitized images of a hardcopy from the MIT Museum.  The digitization
  17. # was performed by Paul Fjeld, and arranged for by Deborah Douglas of
  18. # the Museum.  Many thanks to both.  The images (with suitable reduction
  19. # in storage size and consequent reduction in image quality as well) are
  20. # available online at www.ibiblio.org/apollo.  If for some reason you
  21. # find that the images are illegible, contact me at info@sandroid.org
  22. # about getting access to the (much) higher-quality images which Paul
  23. # actually created.
  24. #
  25. # Notations on the hardcopy document read, in part:
  26. #
  27. #        Assemble revision 001 of AGC program LMY99 by NASA 2021112-61
  28. #        16:27 JULY 14, 1969

  29. # Page 1102
  30.                 BLOCK        02

  31. # SINGLE PRECISION SINE AND COSINE

  32.                 COUNT*        $/INTER
  33. SPCOS                AD        HALF                # ARGUMENTS SCALED AT PI
  34. SPSIN                TS        TEMK
  35.                 TCF        SPT
  36.                 CS        TEMK
  37. SPT                DOUBLE
  38.                 TS        TEMK
  39.                 TCF        POLLEY
  40.                 XCH        TEMK
  41.                 INDEX        TEMK
  42.                 AD         LIMITS
  43.                 COM
  44.                 AD        TEMK
  45.                 TS        TEMK
  46.                 TCF        POLLEY
  47.                 TCF        ARG90
  48. POLLEY                EXTEND
  49.                 MP        TEMK
  50.                 TS        SQ
  51.                 EXTEND
  52.                 MP        C5/2
  53.                 AD        C3/2
  54.                 EXTEND
  55.                 MP        SQ
  56.                 AD        C1/2
  57.                 EXTEND
  58.                 MP        TEMK
  59.                 DDOUBL
  60.                 TS        TEMK
  61.                 TC        Q
  62. ARG90                INDEX        A
  63.                 CS        LIMITS
  64.                 TC        Q                # RESULT SCALED AT 1.



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
便携手到老 发表于 2021-9-26 10:45 | 显示全部楼层
这个是不是里面都是汇编的程序?没有C语言的吗?
 楼主| gaoyang9992006 发表于 2021-9-26 14:17 | 显示全部楼层
便携手到老 发表于 2021-9-26 10:45
这个是不是里面都是汇编的程序?没有C语言的吗?

是的,那年头好像没C语言,航空当时用的都是汇编
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:如果你觉得我的分享或者答复还可以,请给我点赞,谢谢。

2045

主题

16350

帖子

222

粉丝
快速回复 在线客服 返回列表 返回顶部