Download presentation
Presentation is loading. Please wait.
Published byYulia Iskandar Modified over 5 years ago
1
Libraries in Assembly 6/10/2019 TUC-N dr. Emil CEBUC
2
Outline What is a library Available operations Example Common errors
6/10/2019 TUC-N dr. Emil CEBUC
3
What is a library A library is a collection of object files, modules
The .asm source code is already assembled that are gathered together in a .lib file with aid of a librarian TLIB or LIB After all modules are in a library they are used during link edition by TLINK or LINK to generate the executable file 6/10/2019 TUC-N dr. Emil CEBUC
4
TLIB operations + add modulename to the library
Syntax: TLIB libname [/C] [/E] commands, listfile libname library file pathname commands sequence of operations to be performed (optional) listfile file name for listing file (optional) A command is of the form: <symbol>modulename, where <symbol> is: add modulename to the library remove modulename from the library * extract modulename without removing it -+ or update modulename in library -* or *- extract modulename and remove it /C case-sensitive library /E create extended dictionary 6/10/2019 TUC-N dr. Emil CEBUC
5
Example tasm delayprc ; obtain object file
tlib mylib +-delayprc ; update library tasm dmain3 ;main procedure tlink /t dmain3,dmain3,mymap,mylib dmain3 object file dmain3 com file mymap map file ; contains info about segments mylib my library 6/10/2019 TUC-N dr. Emil CEBUC
6
Common Errors Modify procedure and Forget to update library
Type mismatch in the two modules 6/10/2019 TUC-N dr. Emil CEBUC
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.