This is an enhancement for List.asm on 10.4.5 Linked List section. Consider how to make use of the last node and display its data potion just the same as others? Using macro to generate exactly 15 nodes, initializing the list data with the first 15 Fibonacci numbers. The following is expected output you should display:
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 |
You can create a singly linked list as shown in the text or optionally, a circular linked list from your Data Structures’ experience