Rev 4975 | Rev 4997 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4975 | Rev 4979 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | head dd 1 |
1 | head dd 0 |
2 | node equ ftdi_context |
2 | node equ ftdi_context |
3 | node.next equ ftdi_context.next_context |
3 | node.next equ ftdi_context.next_context |
4 | linkedlist: |
4 | linkedlist: |
5 | .init: |
- | |
6 | push eax |
- | |
7 | xor eax, eax |
- | |
8 | mov [head], eax |
- | |
9 | pop eax |
- | |
10 | ret |
- | |
Line 11... | Line 5... | ||
11 | 5 | ||
12 | .add: |
6 | .add: |
13 | push ebx |
7 | push ebx |
14 | mov ebx, [head] |
8 | mov ebx, [head] |
Line 50... | Line 44... | ||
50 | .gethead: |
44 | .gethead: |
51 | mov eax, [head] |
45 | mov eax, [head] |
52 | ret |
46 | ret |
Line 53... | Line 47... | ||
53 | 47 | ||
54 | restore node |
- | |
55 | restore next |
48 | restore node |
- | 49 | restore node.next |
|
56 | 50 |