mips程序集中的链接列表

时间:2016-03-22 17:59:25

标签: list mips

# 1st item - head of the list!
n1_d: .word 1
n1_n: .word n2_d  # point to (beginning of) n2

# 3rd item
n3_d: .word 3
n3_n: .word n4_d

# 2nd item
n2_d: .word 2
n2_n: .word n3_d

# 5th item
n5_d: .word 5
n5_n: .word 0 # This is the last item in the list

# 4th item
n4_d: .word 4
n4_n: .word n5_d

我有一个mips链表,我想用逻辑方式加载每个元素。例如 1,2,3,4,5 我怎么能用一个循环呢?

0 个答案:

没有答案