CREATING CONV LIBRARY

 

DECIMAL TO HEXADECIMAL AND HEXADECIMAL TO ASCII LIBRARY

All programs for conversions from decimal to hexadecimal and hexadecimal to ASCII can be saved as a library. This is in the \PHY353\CONVLIB sub-directory. the main version of these programs are in \PHY353\CONVERT. The steps are the same as that for creating ARI16.LIB. The main versions are converted to sub-procedure and saved in a separate sub-directory \PHY353\CONVLIB. The following steps are then followed:

a) You must start with the procedures:

    i) DECI16_P.ASM

    ii) DECI32_P.ASM

    iii) DECO16_P.ASM

    iv) DECO32_P.ASM

    v) DECO64_P.ASM

 a) All the sub-procedures have to go through “MASM” as shown below:

    i) MASM DECI16_P.ASM

    ii) MASM DECO16_P.ASM

    iii) MASM DECI32_P.ASM

    iv) MASM DECO32_P.ASM

    v) MASM DECO64_P.ASM

The “MASM” should go through “0 warning errors,” and “0 severe errors.” At end, we will get the corresponding binary object files, as show below:

 

 

CREATING CONV.LIB

b) The batch file “LIBCONV.BAT” creates the library file CONV.LIB as shown below:

c) The library “CONV.LIB” created is a binary object file. Also created is the “CONVLIB.LST” file, which contains the list of the binary object modules in the library.

d) the steps are shown below:

 

BuiltWithNOF

[PHY353/553] [PHY353/553] [Goals] [Prof. Saj Alam] [Syllabus] [Grading Policy] [Books] [Schedule] [Lectures] [Chp 1: History of Computers] [Chp2: Binary Numbers] [Chp3: Conceptual Computer] [Software Model] [Addressing Modes] [Instruction Set] [Assembly Language] [First Program] [ADD16] [SUB16] [MUL16] [DIV16] [CALC16] [CALC32] [Manual] [Exams] [Grades]