1987-01-08 10:13:48 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
|
|
|
.sect .text
|
1985-02-07 15:33:13 +00:00
|
|
|
.define .iaar
|
|
|
|
|
|
|
|
.iaar:
|
1987-06-09 10:22:50 +00:00
|
|
|
pop cx
|
1985-02-07 15:33:13 +00:00
|
|
|
pop dx
|
|
|
|
cmp dx,2
|
1987-01-08 10:13:48 +00:00
|
|
|
.extern .unknown
|
1985-02-07 15:33:13 +00:00
|
|
|
jne .unknown
|
1987-06-09 10:22:50 +00:00
|
|
|
pop bx ! descriptor address
|
1985-02-07 15:33:13 +00:00
|
|
|
pop ax ! index
|
1987-06-09 10:22:50 +00:00
|
|
|
pop dx ! array base
|
|
|
|
sub ax,(bx)
|
|
|
|
mul 4(bx)
|
|
|
|
mov bx,dx
|
|
|
|
add bx,ax
|
|
|
|
push cx
|
|
|
|
ret
|