source: trunk/minix/lib/i86/em/em_iaar.s@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 256 bytes
RevLine 
[9]1.define .iaar
2.text
3
4.iaar:
5 pop cx
6 pop dx
7 cmp dx,#2
8.extern .unknown
9 jne .unknown
10 pop bx ! descriptor address
11 pop ax ! index
12 sub ax,(bx)
13 mul 4(bx)
14 pop bx ! array base
15 add bx,ax
16 push cx
17 ret
Note: See TracBrowser for help on using the repository browser.