首页 > 解决方案 > LNK1190:找到无效的修正,类型 0x0001

问题描述

遇到“LNK1190: invalid fixup found, type 0x0001”的问题不明白,我在哪里犯了错误。我正在使用 TASM Visual Studio。之前没有找到任何答案。谁能告诉我,问题出在哪里?此代码假设获取行并更改其中第一个和最后一个符号的位置。

.model small

.stack 100h

.486

.code


jmp start

.data
mess   db   'String: $'
buff   db   12 dup(0),'$'
len    equ  12


.code
start: 
       mov   ah,9              
       lea dx, mess
       int   21h
       mov   cx,len
       lea di,buff           
       push  cx

       mov   ah,1             
input: int   21h
       stosb                 
       loop  input

       pop   si
begin: lodsb                 
       push  ax              
       loop  begin

       lea di,buff           
       mov   cx,len
write: pop   ax            
       stosb                 
       loop  write

       mov   ah,2         
       xor   bx,bx
       mov   dh,10
       mov   dl,30
       int   10h

       mov   ah,9         
       lea dx,buff           
       int   21h

       xor   ax,ax
       int   16h
       int 20h

       int 21h
       END start

标签: assemblytasm

解决方案


推荐阅读