Anonymous user
Singly-linked list/Element definition: Difference between revisions
Singly-linked list/Element definition (view source)
Revision as of 01:16, 25 September 2010
, 13 years agono 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>
|