[A83] Re: quick data storage question
[Prev][Next][Index][Thread]
[A83] Re: quick data storage question
ds? never heard of that one...
----------------------------------------------
Original Message
From: "Harper Maddox"<gte172i@prism.gatech.edu>
Subject: [A83] Re: quick data storage question
Date: Tue, 10 Apr 2001 00:03:14 -0400
>
>At 11:50 PM 4/9/01 -0700, you wrote:
>
>>.db is 16 bit, .dw is 32 bit (2 byte)
>>.dw is used for larger numbers but is harder to work with. If you load a
.dw
>>label into hl you will only be getting the first 16 bits. I wouldn't worry
>>about .dw just use .db .
>>
>>.dw is basicly 2 .dbs it is used for memory locations
>>Someone correct me if I'm wrong, which I might be.
>>
>>-Joe
>
>these identify an area of your program as data. you can access these
>references by a label in front of them.
>ex.
>
>getHighScore:
> ld hl,myHighScore
> ld a,(hl) ; a=99
>
> ; or you can even do...
> ld a,(getHighScore) ; this is legal. you would get the first
>byte of the OPCODE "ld hl,XXXX"
>...
>
>myHighScore: .db 99
>
>.db is 1 byte, or 8 bit
>.dw is 2 bytes, or 16 bit
>
>.ds <xxxxx> is xxxxx bytes of space.
>
>
>
>
_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com