minix/lib/i386/em/em_rol.s

21 lines
312 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.sect .text; .sect .rom; .sect .data; .sect .bss
.sect .text
.define .rol
! #bytes in eax
.rol:
pop edx ! return address
cmp eax,4
jne 1f
pop eax
pop ecx
rol eax,cl
push eax
jmp edx
1:
.extern EODDZ
.extern .trp
mov eax,EODDZ
push edx
jmp .trp