Re: LZ: Question with programming
[Prev][Next][Index][Thread]
Re: LZ: Question with programming
Ryan Myers wrote:
>
> On Wed, 11 Dec 1996, Dines Justesen wrote:
>
> > Ryan Myers wrote:
> >
> > > This would be the code to retrieve a value at row x, column y - assuming that
> > > the first value in the matrix is row 0 col 0 and the last row 11 col 5. Row
> > > is given in B and Column in A.
> > >
> > > GetValue:
> > > mul b, 6
> > > add a, b
> > > ld hl, a
> > > add hl, Matrix1
> > > ld a, (hl)
> > > ret
>[snip]
> I would rather keep row in B and column in A - keeps the code smaller and
> faster. Speed and code size are my primary concerns - any
Besides the problem with the PROGRAm_START here is still some minor
errors. you can not load a 16 bit reg with an 8 bit (ld hl,a), and
i the mul b,6 is not god. Change it so your code shifts and adds.
--
_______________________________________
Dines Justesen
Email: dines@post1.com or
c958362@student.dtu.dk
WWW : http://www.gbar.dtu.dk/~c958362/
_______________________________________
References: