位置计数器在tasm溢出

时间:2011-06-22 04:16:05

标签: assembly tasm

我有一个50K行代码(生成)的汇编文件存在这个问题。我尝试了模型巨大,但问题仍然存在。有人帮帮我吗?

   *Warning* Libreria.asm(26227) Location counter overflow
   *Warning* Libreria.asm(52442) Location counter overflow

我的代码以

开头
   .model small ; I tried with model huge but this does not work
   .stack 100h
   .data
      modovideo db ?
   .code
   main proc
      ; paint pixel by pixel - 150 000 lines , if this is less than 26227 lines, this works)
   main endp
   end main

1 个答案:

答案 0 :(得分:0)

我猜这是16位代码,你的代码段超过64k。巨大的模型无济于事,16位模式下的段不能超过64kbytes。尝试生成列表文件,看看代码段中的偏移是否回绕(重置为0)或超过65535(0FFFFh)。

相关问题