Reputation: 2358
According to NASM's documentation, the following allows me to define 64,000 uninitialized bytes at the label Vid
:
Vid resb 64000
According to subsequent documentation, this should allow me to initialize those bytes to 0xFF instead:
Vid db 64000 dup (FFh)
This, however, yields the error error: comma expected after operand 1
.
I have also tried:
Vid
0
or a question mark for the default value instead of FF (although FF is my intended value)64
I cannot find anything online suggesting that this syntax has changed or that there are any cases where it should not work.
As important background, I am compiling to a bin
file and have the cpu 8086
directive in my source.
Upvotes: 1
Views: 572