1985-03-29 21:44:50 +00:00
|
|
|
.define .lar2
|
1987-02-02 13:30:20 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
|
|
|
.sect .text
|
1985-03-29 21:44:50 +00:00
|
|
|
|
|
|
|
! special case lar: element size = 2 (statically known)
|
|
|
|
! parameters:
|
|
|
|
! on stack
|
|
|
|
! adapted from .aar2
|
|
|
|
! execution time: 144 states
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.lar2:
|
|
|
|
pop ix
|
|
|
|
pop hl
|
|
|
|
ld c,(hl)
|
|
|
|
inc hl
|
|
|
|
ld b,(hl)
|
|
|
|
pop hl
|
|
|
|
xor a
|
|
|
|
sbc hl,bc
|
|
|
|
add hl,hl ! size*(index-lwb)
|
|
|
|
pop de
|
|
|
|
add hl,de ! + base
|
|
|
|
ld e,(hl)
|
|
|
|
inc hl
|
|
|
|
ld d,(hl)
|
|
|
|
push de
|
|
|
|
jp (ix)
|