Assembly amature question: prog errors

This is a discussion on Assembly amature question: prog errors within the Tech Board forums, part of the Community Boards category; Code: .... MAIN SEGMENT BYTE ; ERROR: segment name `BYTE' not recognised ASSUME CS:MAIN,DS:MAIN,SS:NOTHING ; ERROR: parser: instruction expected ... ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    362

    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.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature 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, 06:53 AM
  4. inline assembly question
    By DavidP in forum C++ Programming
    Replies: 3
    Last Post: 02-10-2002, 05:14 AM
  5. Handling input errors, general question
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-08-2001, 05:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21