I would like to get some help with this questions: what is correct and legal in following definition of the data segment:
data segment
x db -23, 3 or 4, not -3, 9 xor 15, 129, $+x, SEG x, -128 LT 80h
db -129, x+1, b2h, 256, 7852h, byte ptr z
y dw z-2, -7852h, x[2], offset bx
z dd z-y, FAR PTR y
data ends
I consider following wrong:
- cant contain operations: 3 or 4, not -3, 9 xor 15, FAR PTR y, offset bx ...
- cant reference same varaible : $+x
And correct:
- -23, 129, 7852h ...
- a db 'abc'
lengthOfa EQU ($-s)
Am i right about this facts?