minix/lib/i386/em/em_iaar.s

19 lines
311 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 .iaar
.iaar:
pop ecx
pop edx
cmp edx,4
.extern .unknown
jne .unknown
pop ebx ! descriptor address
pop eax ! index
sub eax,(ebx)
mul 8(ebx)
pop ebx ! array base
add ebx,eax
push ecx
ret