flat assembler
Message board for the users of flat assembler.
Index
> DOS > Link files and far calls <coming from MASM> |
Author |
|
coconut 19 Apr 2005, 19:50
why not use include 'sub.asm' directive, and/or make printabc a procedure?
... ... call printabc ... ... proc printabc ... ... ... endp |
|||
19 Apr 2005, 19:50 |
|
Marco Leise 20 Apr 2005, 06:15
Thanks for replying, but the point is I'm a student and we are ment to use far calls to other segments. Also proc is not a FASM keyword, is it? How would I do this in plain FASM syntax?
Can I also link object files into the program so i do not always have to include them? |
|||
20 Apr 2005, 06:15 |
|
Tomasz Grysztar 20 Apr 2005, 10:49
Raw solution without any macros:
SUB.ASM: Code: segment subroutines use16 printABC: mov ah, 2 mov dl, 'A' int 21h mov dl, 'B' int 21h mov dl, 'C' int 21h retf MAIN.ASM: Code: format MZ entry main:start segment main use16 start: call far subroutines:printABC mov ax, 4C00h int 21h include 'SUB.ASM' |
|||
20 Apr 2005, 10:49 |
|
Marco Leise 20 Apr 2005, 17:06
Clear and sharp! Now I get it. With the include directive, linking two seperate files is like cutting paper with a chainsaw.
|
|||
20 Apr 2005, 17:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.