High level macro not recognized - Beginner MASM

Posted by Francisco P. on Stack Overflow See other posts from Stack Overflow or by Francisco P.
Published on 2010-06-07T19:03:23Z Indexed on 2010/06/07 19:12 UTC
Read the original article Hit count: 510

Filed under:
|
|
|
main proc
 finit
 .while ang < 91
    invoke func, ang
    fstp res
    print real8$(ang), 13, 10
    print real8$(res), 13, 10
    fld ang
    fld1
    fadd
    fstp ang
 .endw
 ret
main endp

What's wrong with this piece of MASM code?

I get an error on .endw. I have ran some tests to ensure myself of that. Assembler tells me invalid instruction operands.

Thank you for your time!

© Stack Overflow or respective owner

Related posts about beginner

Related posts about assembly