This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

$round() built-in function of assembler creates problem

for this definition in my assembly file:

   .word $round(MAX_SINE_AMP * $sin(2 * 3.141592 / 360))

I get the following error thrown by assembler:

"SineTable.asm", ERROR!   at line 16: [E0201] Illegal floating-point expression

If I change $round() to $cvi() as below, it assembles. no problem. it works. why?

   .word $round(MAX_SINE_AMP * $sin(2 * 3.141592 / 360))

sayee