Thread: Assembly amature question: prog errors

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    Assembly amature question: prog errors

    Code:
    ....
    MAIN    SEGMENT BYTE                       ; ERROR: segment name `BYTE' not recognised
            ASSUME  CS:MAIN,DS:MAIN,SS:NOTHING  ; ERROR: parser: instruction expected
    ...
    
    jmp     NEAR PTR PROG_START                 ;ERROR: comma or end of line expected
    ...
    DTA             DB      1AH dup (?)         ;ERROR: comma expected after operand 1
    ...
    FNAME           DB      13 dup (?)          ;ERROR: comma expected after operand 1
    ...
    VSTACK          DW      50H dup (?)         ;ERROR: comma expected after operand 1
    ...
    Hi im trying to assemble a prog with above lines and get above commented errors. howto fix thoes errors please. im using NASM but prog is meant to be assembled on TASM.

    thx.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur English)

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Ok well first off it is complaining about the use of "BYTE" so that should be addressed first. Is there a macro or something you need to import? Or does it need to be macroed? Or perhaps the syntax is just different. Believe it or not there is no standard for assembler at all. Everything else is because of the BYTE issue. I have not used NASM before so I can't give you a more specific answer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Assembly Help PLease!
    By Tleggo in forum C Programming
    Replies: 2
    Last Post: 05-24-2002, 03:29 PM
  2. Question about DNS (non prog but computers)
    By Windoze user in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-10-2002, 05:43 PM
  3. what does this warningmean???
    By kreyes in forum C Programming
    Replies: 5
    Last Post: 03-04-2002, 07:53 AM
  4. inline assembly question
    By DavidP in forum C++ Programming
    Replies: 3
    Last Post: 02-10-2002, 06:14 AM
  5. Handling input errors, general question
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-08-2001, 06:21 PM