I have a question, i have been given an assignment to make a static library in assembly language i.e. MASM, but all the tutorials i find on the internet are either incomplete or too hard for me to understand. I am using dosbox since i have a 64 bit windows. Please help step by step Please and thank you
相关问题
- Null-terminated string, opening file for reading
- What's the difference between 0 and dword 0?
- Translate the following machine language code (0x2
- Where can the code be more efficient for checking
- How can I include a ASM program into my Turbo Basi
相关文章
- 汇编程序编译时出现的小问题
- How to generate assembly code with gcc that can be
- Select unique/deduplication in SSE/AVX
- Optimising this C (AVR) code
- Why does the latency of the sqrtsd instruction cha
- Difference in ABI between x86_64 Linux functions a
- x86 instruction encoding tables
- Why doesn't there exists a subi opcode for MIP
I suggest using DosBox only for running the final executable. You don't need DosBox to produce this executable, since Masm32 runs under 64 bit Windows. But the
lib.exe
shipped with Masm32 doesn't produce a OMF-Library suitable forlink16.exe
. So you have to get alib.exe
which "speaks" OMF, e.g. thelib.exe
by DigitalMars (http://www.digitalmars.com/ctg/lib.html).Example:
main.asm:
function.asm:
build.cmd:
Build it in a console of Windows and run
main.exe
in DosBox.