[A86] Re: address
[Prev][Next][Index][Thread]
[A86] Re: address
First of all hl would contain the address, not the byte itself. In addition,
the first byte
starts at address table, second at address table+1, and 3rd at address
table+2
so you would do (for example):
ld hl, table+2
ld a, (hl)
Matt
> table:
> .db 0,0,0,0...
> .db 0,0,0
>
> and I wanted to get the fourth, fifth, and sixth bytes of the table,
would:
>
> ld hl,table + 3
>
> give me the the byte indicated below?
>
> table:
> .db 0,0,|0|,0,0,0,0,0,0,0,0...
> .db 0,0,0
References: