【发布时间】:2016-09-27 22:12:50
【问题描述】:
我正在编写一个非递归程序,用于计算 Mac-1 汇编架构中序列中第 N 项的斐波那契数。一切都很好,直到我到达函数中需要比较的点,以查看我加载到累加器中的 N 值是否
所以我的问题是如果我有:
0001 One: 1 // Constant definition
000A N: 10 // N
在函数中我可以说:
800y LODL y // Loading N after its already been placed in the stack by offset y
C0xx JNEG Finished // If the number is negative, we are finished
50xx JZER Finished // If the number is zero, we are finished
但是如果 N
【问题讨论】:
标签: assembly hex comparison fibonacci