致命:没有程序入口点

时间:2019-02-12 02:12:18

标签: assembly x86-16 tasm

我正在使用TASM进行课程分配。尝试使用Turbo Link版本7.1.30.1创建.EXE文件时,出现“致命:没有程序入口点”错误。该程序将正确组装。

我尝试使用startpoint:和start:之前。到目前为止,没有任何效果。

    TITLE NOSICHA1.ASM

        .MODEL  SMALL
        .STACK  100h

        .DATA

        INCLUDE CONST.INC
        INCLUDE GETINT.ASM
        INCLUDE PUTINT.ASM

    X       DW  ?
    Y       DW  ?
    Z       DW  ?
    OUTMSG1     DB  'Z(x, y) = 27 * x - 14 * y + (10 * x + 17 * y) * (19 * x - 3 * y)'
        INMSG1      DB  CR, LF, 'PLEASE ENTER THE VALUE OF x: $'
        INMSG2      DB  CR, LF, 'PLEASE ENTER THE VALUE OF y: $'
        OUTMSG2     DB  CR, LF, 'THE VALUE OF Z IS: $'

    .CODE

        EXTRN   GETINT: PROC, PUTINT: PROC

MAIN    PROC

    MOV     AX, @DATA
        MOV     DS, AX

        MOV     AH, WRSTR
        MOV     DX, OFFSET OUTMSG1
        INT     DOSFUNC

        MOV     AH, WRSTR
        MOV     DX, OFFSET INMSG1
        INT     DOSFUNC

        CALL    GETINT
        MOV     Y, AX

        MOV     AH, WRSTR
        MOV     DX, OFFSET INMSG2

        CALL    GETINT
        MOV     Y, AX

        MOV     AX, 10
        IMUL    Y
        MOV     BX, AX
        MOV     AX, 17
        IMUL    Y
        ADD AX, BX
        MOV CX, AX

        MOV AX, 19
        IMUL    Y
        MOV BX, AX
        MOV AX, 3
        IMUL    Y
        SUB BX, AX
        MOV AX, BX

        IMUL    CX
        MOV CX, AX

        MOV AX, 27
        IMUL    X
        ADD CX, BX

        MOV AX, 14
        IMUL    Y
        SUB CX, AX

        MOV Z, CX

        MOV AH, WRSTR
        MOV DX, OFFSET OUTMSG2
        INT DOSFUNC

    MOV AX, CX
    CALL    PUTINT

        MOV AH, RET2DOS
        INT DOSFUNC

MAIN    ENDP

    END     MAIN

0 个答案:

没有答案