Jump to content

Singly-linked list/Traversal: Difference between revisions

m
Line 9:
 
=={{header|6502 Assembly}}==
 
These implementations use the zero page to hold the linked list nodes. The equivalent implementation for any arbitrary address will be left as an exercise to the reader.
 
===Using self-modifying code===
In this example, we'll create three nodes, and read the value of the last node. You can copy and paste this code into easy6502 and run it there. Note that the debugger shows that the value in the accumulator is $25, just as expected.
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.