This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Writing Assembly Files

Hello,

I want to create an assembly file from which I can read system messages. I wrote the following code:

MESSAGE .macro  VPOS, HPOS, ALGN, DUR, NEG, MSGTXT
                  .field  VPOS, 8
                  .field  HPOS, 8
                  .field  ALGN, 2
                  .field  DUR, 13
                  .field  NEG,  1
                  .word   MSG?
                  .sect   ".const"
MSG?    .string ":MSGTXT:", 0
                  .text
                  .endm

; Turkish Messages
                  .def  _SY_TURK_MSG
_SY_TURK_MSG:
;        row  col algn dur neg text
 MESSAGE   7,  18, 0, 1500, 0, "coskun"
 MESSAGE   8,  18, 0, 1500, 0, "ayyildiz"

                  .end

When I compile the code, I get the following error message:

messages.s(13):error: A1355U: A Label was found which was in no AREA (the red line above)

I dont know where I should write "AREA". Can you please help me solve this problem?

0