首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 嵌入开发 > 汇编语言 >

“fatal error L1103: attempt to access data outside segment bouds”这个异常是什么?该如何解决

2012-10-30 
“fatal error L1103: attempt to access data outside segment bouds”这个错误是什么?该怎么解决?LINK时说

“fatal error L1103: attempt to access data outside segment bouds”这个错误是什么?该怎么解决?
LINK时 说我  
fatal error L1103: attempt to access data outside segment bouds
是怎么回事啊?? 这句话是什么意思啊? 
问题补充:还有一行少打了 pos:57 record type:8a


[解决办法]
看字面意思是你访问的数据超出段了
[解决办法]
把你代码贴出来看看呢
[解决办法]
programsegment ;define code segment
mainprocfar
assumecs:program
start: ;starting execution addr
;set up stack for return
pushds ;save old daata segment
subax,ax ;put zero in ax
pushax ;push zero on stack
;main part of program
movch,4 ;number of digits
rotate:
movcl,4 ;set count to 4 bits
rolbx,cl ;left digit to right
moval,bl ;move to al
andal,0fh ;mask of left digit
addal,30h ;convert hex to ASCII
cmpal,3ah ;is it >9?
jlprintit ;jump of digit = 0 to 9
addal,7h ;digit is A to F
printit:
movdl,al ;put ASCII char in DL
mov ah,2 ;display output funct
int 21h ;call DOS
decch ;done 4 digits?
jnz rotate ;not yet
ret ;end of main part of prog.
main endp ;eng of segment
program ends;eng of segment
end start ;the entry of program is start

热点排行