Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是汇编程序的新手,我的任务是编写一个创建帕斯卡三角形的程序,当我得到一个表示三角形深度的数字 N 时。问题定义通过二维数组来做到这一点。
输出例如:
1 0 0 0 1 1 0 0 1 2 1 0
等等
我被允许仅使用问题中指示的内存并使用寄存器。我的问题是:如何访问以前的单元格来计算当前单元格,而不会丢失当前位置?
非常感谢!