Singly-linked list/Element definition: Difference between revisions

no edit summary
m (→‎{{header|Tcl}}: improve requirements)
No edit summary
Line 533:
}
}</lang>
 
=={{header|X86 Assembly}}==
{{works with|NASM}}
 
<lang asm>
struct link
.next: resd 1
.data: resd 1
endstruc
</lang>
Of course, ASM not natively having structures we can simply do..
<lang asm>
link resb 16
</lang>
Which would reserve 16 bytes(2 dwords). We could just simply think of it in the form of a structure.<br><br>
{{works with|MASM}}
<lang asm>
link struct
next dd ?
data dd ?
link ends
</lang>