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