Missing Operator ASM error


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default Missing Operator ASM error

    In the below code which is being used to store date in the program code space I get missing operator error (112) in the last three lines of data, the mixed hex and string stuff. Any ideas, sorry i am not familiar with MPASM syntax or conventions.

    Code:
    '-----[The DATA table]--------------------------------------------------------
    GOTO OverData             ; Make sure data doesn't try to execute
    ASM
    DataTable
        DB  "Hello World         "      ; etc.
        DB  "This is a test      "
        DB  $00,$02,$12,"WAmps"
        DB  $01,$02,$11,"VAmps"
        DB  $02,$02,$10,"UAmps"
    endasm
    
    OverData:

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: Missing Operator ASM error

    OK sorted it data has to be in decimal!!

    Arggh all my data for my large table is in $xx hex format, any way round that without converting it all?

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: Missing Operator ASM error

    It doesn't have to be in decimal.
    But since the data is in assembly language, you need to use the assembly language format for hexadecimal numbers.

    $ is for PBP.
    0x is for ASM

    DB 0x00,0x02,0x12,"WAmps"

    Just do a search and replace.
    DT

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts