source:
trunk/minix/lib/i386/em/em_adi.s@
10
| Last change on this file since 10 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 307 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | .sect .text; .sect .rom; .sect .data; .sect .bss |
| 2 | .define .adi | |
| 3 | ||
| 4 | ! #bytes in ecx , top of stack in eax | |
| 5 | .sect .text | |
| 6 | .adi: | |
| 7 | pop ebx ! return address | |
| 8 | cmp ecx,4 | |
| 9 | jne 9f | |
| 10 | pop ecx | |
| 11 | add eax,ecx | |
| 12 | jmp ebx | |
| 13 | 9: | |
| 14 | .extern EODDZ | |
| 15 | .extern .trp | |
| 16 | mov eax,EODDZ | |
| 17 | push ebx | |
| 18 | jmp .trp |
Note:
See TracBrowser
for help on using the repository browser.