minix/lib/i86/em/em_iaar.s

18 lines
256 B
ArmAsm
Raw Normal View History

2005-04-21 16:53:53 +02:00
.define .iaar
.text
.iaar:
pop cx
pop dx
cmp dx,#2
.extern .unknown
jne .unknown
pop bx ! descriptor address
pop ax ! index
sub ax,(bx)
mul 4(bx)
pop bx ! array base
add bx,ax
push cx
ret