A83: Re: HL


[Prev][Next][Index][Thread]

A83: Re: HL




ld hl,8300h
ld de,(hl)       ;gives you the word stored at HL
ex de,hl
ld a,(hl)

If that doesnt work try this...
ld hl,8300h
ld a,(hl)
ld e,a
inc hl
ld a,(hl)
ld d,a
ex de, hl
ld a,(hl)

I assume this works, although i havent tested it  :)
-harper
----------
> From: robert m. gardner <lilprog@prairienet.org>
> To: TI-83 ASSEMBLY <assembly-83@lists.ticalc.org>
> Subject: A83: HL
> Date: Wednesday, December 24, 1997 10:02 AM
> 
> 
> 
> 
> Let's say I store a memory address at mem location 8300h.  How could I 
> load the memory address at that location(not 8300h but what is at 8300h) 
> into hl?
> 
> Thanks in advance,
> Rob
> 
> 
> 
> |-----------------------------------------------------------|
> |Robert M. Gardner          | Turbo C++ Programmer          |
> |Lilprog@prairienet.org     | HTML Web page writer          |
> |Parkland Cross Country     | Knows Unix, Dos, and Windows  | 
> |-----------------------------------------------------------|


Follow-Ups: