A86: Question...
[Prev][Next][Index][Thread]
A86: Question...
Hello Everyone,
I am going to start a new project [actually, I have already :] and I have
a question... suppose I wanted to store 8 numbers [either 1 or 0] in a
variable.. could I do this? I think you can do it with bits and bytes but
I don't know how really :P Is this possible, or could someone show me an
easier way??
RowVar: .db 0,0,0,0,0,0,0,0
ld hl,1
ld (RowVar),hl ;Load? all of RomVar Numbers as 1????
ld hl,0
ld (RomVar+8),hl ;Load? 0 into RomVar+8 [the 8th #???]
ld hl,(RomVar+7) ;Load ??? The seventh number into hl?
Ok, so hopefully someone will understand what I am trying to ask :P Thanks...
-Ahmed
Ahmed El-Helw
ahmedre@worldnet.att.net
http://asm86.home.ml.org
http://asm8x.home.ml.org
Ahmed_ on IRC
ICQ UIN: 3350394
Follow-Ups: