hi all ,
i have no idea how i start with this , i need u !
i need to do:

dseg segment
set db N dup(?)
reset db n dup(?)
Qbefore db n dup(?)
Qafter db n dup (?)
dseg ends

implantation set/reset - 0 0 Q before=0 Q after=0
0 0 1 1
0 1 X 0
1 0 X 1
1 1 X X