We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I hope my request is simple. I come from a x86/MASM background. I’m trying simply to reserve a block of memory. With MASM, I’d simply do the following: db how_many dup (?)
It seems the a51 assembler does not have any equivalent that I’ve been able to find. The manual does mention using expressions, but is there anything to do the same this as the MASM example above?
To just reserve some space, you don't usually use DB. See DS instead. Or, if you really must use DB, combine it with REPT:
REPT n DB b ENDM
On a more general note, IMHO imitating features of another isn't exactly the best way to learn a new assembly language. Forget about MASM for a while, and learn A51 in its own context.