hy all,

i have defined a record

RECORD name field1:4, field2:1, field3:4... etc etc to 16 bit

how can i set then a single field of the record in an easy way ? is there some macro ready ?

(i'm using tasm ideal syntax, but e can translate easily from masm :) )

infinite thanks, B7
Posted on 2004-07-02 09:47:37 by Bit7
Hi,

IIRC its the MASK operator

or xxx, MASK field1
Posted on 2004-07-02 10:14:12 by japheth
thx,

but
or xxx, MASK field1

is for read the bitfield in a register.

How about to write it ?

Thx
Posted on 2004-07-02 17:31:37 by Bit7
and xxx,bitflag to set isnt it?
Posted on 2004-07-02 18:05:13 by evlncrn8
Hi Bit7,

My last post was meant:



RECORD name field1:4, field2:1, field3:4... etc etc to 16 bit
.data
xxx name <0>
.code
or xxx, MASK field1

so xxx isnt a register. Doesnt that work?
Posted on 2004-07-03 00:54:01 by japheth
opsss sorry japhet, :( misunderstood.
Now is clear :) i try.
ok, infinite thanks :)
now i try
Posted on 2004-07-03 05:12:10 by Bit7