NASM Forum > Using NASM

Changed behavior of %exitrep

(1/1)

fullofbugs:

--- Code: ---%macro GetNumber   0.nolist   
  %assign %%f 0
  %rep 99
    %if %%f = 9
      %exitrep
    %endif
  %assign %%f %%f + 1
  %endrep
  DB %%f
%endmacro

--- End code ---

In NASM 2.14, this macro generates DB 10.
In NASM 2.15, this macro generates DB 9.

To me, the new behavior makes more sense, but I am surprised to see that this change was not documented. I also hesitate to update my code, as I am not sure if this is considered a bug and will be changed back.
Does anyone know if the change is intentional?

debs3759:
The new behaviour is how I would expect it to behave. It looks like it was wrongly coded in older versions.

Navigation

[0] Message Index

Go to full version