【发布时间】:2012-01-01 11:44:11
【问题描述】:
我有一个定义非常基本的 IO 函数的文件,我想创建另一个使用该文件的文件。
有没有办法将这两个文件链接起来?
prints.asm:
os_return:
;some code to return to os
print_AnInt:
;some code to output an int, including negatives - gets param from stack
print_AChar:
;some code to output a char - gets param from stack
使用PrintTest.asm:
main:
push qword 'a'
call print_AChar ;gets this from prints.asm somehow (that's my question)
call os_return ;and this too..
请注意,这些不是实际文件...它们只是用来解释我的问题 :)
谢谢!
【问题讨论】:
标签: compiler-construction assembly linker nasm extern