2

I was lucky enough to run into some NASM code that compiled fine in FASM changing just a single line;

buffer times 64 db 0

This works fine in NASM, but not in FASM - i had to write:

buffer db 0, 0, 0, 0, 0, 0, ...

There must be a more compact way to do this.

rkhb
  • 14,159
  • 7
  • 32
  • 60
Vegard J.
  • 307
  • 3
  • 13

3 Answers3

5

You are probably looking for:

buffer db 64 dup(0)
nc3b
  • 15,562
  • 5
  • 51
  • 63
3

in fasm, when a label is folowed by a macro, its name should end with a colon

buffer: times 64 db 0
3

In fasm you should write

buffer rb 64 ; reserve 64 bytes
pelaillo
  • 71
  • 3