1 / 7

Link Libraries

Link Libraries. Files containing procedures that have been assembled into machine code. The assembler leaves the target address of the call instruction blank. (The listing file, generated by the assembler, uses ---).

temima
Download Presentation

Link Libraries

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Link Libraries • Files containing procedures that have been assembled into machine code. • The assembler leaves the target address of the call instruction blank. (The listing file, generated by the assembler, uses ---). • The linker reads the object file and copies any required procedures from the link library to produce the executable file. (The addresses can be viewed in the map file.

  2. Accessing the Linker • The linker program is embedded within the assembler package. Link32 %1.obj irvine32.lib

  3. Procedures in the Link Library • Dumpregs- Displays registers in hex • Dumpmem- Writes a block of memory • Listing of procedures on pages 140-141.

  4. Writing Procedures • Writeint – 32-bit signed integer in decimal • Writebin – 32-bit integer in ASCII binary • Writedec – 32-bit unsigned integer in decimal (no leading zeros) • Writehex – 32-bit unsigned integer in hex • Writechar – writes a single character • Writestring – writes a null terminated string

  5. Read Procedures • Readint – read 32-bit signed integer from standard input • Readchar – read a single character from standard input • Readhex – read a 32-bit hex integer from standard input. No error checking • Readstring - reads a string from standard input

  6. Console Procedures • Clrscr – clear the console and place cursor in upper left corner of screen • Crlf – write an end of line sequence to standard output • SetTextColor – sets the foreground and background colors of all subsequent text output. • Gotoxy – locate cursor at a specific location on the console. • Waitmsg – display a message and wait for the Enter key to be pressed.

  7. More Procedures • Random32 – Generates a 32-bit pseudorandom integerin the range 0-FFFFFFFFh. • RandomRange –produces a random integer within the range of 0 to n-1. • Randomize – seeds the random number generator with a unique value. • Delay – pauses the program for a specified number of milliseconds. • GetMseconds – returns the number of milliseconds that have elapsed since midnight.

More Related