组装问题 [英] Assembler Problem

查看:153
本文介绍了组装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有MASM汇编程序来编译" 16位程序. 当我尝试编译"我的样本时,MASM向我抛出了一些错误:

error A2004: symbol type conflict
 warning A4023: with /coff switch, leading underscore required for start address : START

我的代码是:

STA SEGMENT STACK
    DB 100H DUP(0)
STA ENDS

    CODE SEGMENT
        ASSUME CS:CODE, DS:CODE,SS:STA
    START:MOV AX,CODE
           MOV DS, AX
           MOV DX, OFFSET BOKER
           MOV AH, 8
           INT 21H
           MOV AX, 4C00H
           INT 21H
           BOKER DB 'Hello world!$'

    CODE ENDS
    END START

请帮助! 谢谢.

解决方案

错误字面意思是什么问题... warning A4023: with /coff switch, leading underscore required for start address : START

因此将START:MOV AX,CODE更改为_START:MOV AX,CODE

MASM32的A2004问题在这里您可以找到针对A2004错误的修复程序

I have MASM assembler to "compile" 16 bit programs. When I tried to "compile" my sample, the MASM throw me some errors:

error A2004: symbol type conflict
 warning A4023: with /coff switch, leading underscore required for start address : START

my code is:

STA SEGMENT STACK
    DB 100H DUP(0)
STA ENDS

    CODE SEGMENT
        ASSUME CS:CODE, DS:CODE,SS:STA
    START:MOV AX,CODE
           MOV DS, AX
           MOV DX, OFFSET BOKER
           MOV AH, 8
           INT 21H
           MOV AX, 4C00H
           INT 21H
           BOKER DB 'Hello world!$'

    CODE ENDS
    END START

Please help! Thanks.

解决方案

The error literally says what's wrong... warning A4023: with /coff switch, leading underscore required for start address : START

So change START:MOV AX,CODE to _START:MOV AX,CODE

And A2004 Problem With MASM32 here you can find a fix for the A2004 error

这篇关于组装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆