我正在编写程序集,我的代码适用于近距离跳转(如下所示,指令被执行):
org 0x500
jmp main
%include "smallFile.inc"
main:
;start instructions, these instructions get executed
但是,当我包含多个文件、更大的文件(如下)时,它不会跳转,指令不会被执行。我试图在“主要”助记符之前添加地址,我的理解可能不正确。
我将如何使以下情况起作用?
org 0x500
jmp main
%include "smallFile1.inc" ;couple bytes assembled and linked in
%include "smallFile2.inc" ;couple bytes assembled and linked in
%include "smallFile3.inc" ;couple bytes assembled and linked in
%include "LargeFile.inc" ;couple hundred bytes assembled and linked in
%include "LargeFile2.inc" ;couple hundred bytes assembled and linked in
main:
;start instructions, these are never reached