开发者

location counter overflow in tasm

开发者 https://www.devze.com 2023-03-15 00:14 出处:网络
i have this problem with an assembly file with 50K lines of code (it´s generated). I tried with model huge but the problem persists. Someone help me?

i have this problem with an assembly file with 50K lines of code (it´s generated). I tried with model huge but the problem persists. Someone help me?

   *Warning* Libreria.asm(26227) Location counter overflow
   *Warning* Libreria.asm(52442) Loca开发者_如何学编程tion counter overflow

my code starts with

   .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


I would guess that this is 16-bit code and that your code segment exceeds 64k. Huge model will not help, no segment in 16-bit mode can be larger then 64kbytes. Try to generate listing file and see if the offset in code segment wraps around (resets to 0) or goes beyond 65535 (0FFFFh).

0

精彩评论

暂无评论...
验证码 换一张
取 消