IntelHexToBin
Public Member Functions | Public Attributes | List of all members
com.hobby.project.LineParser Class Reference

Public Member Functions

LinkedHashMap< Long, String > processRecord (LinkedHashMap< Integer, String > lnTbl)
 
Record parseRecord (String record)
 

Public Attributes

long StartAddress
 

Detailed Description

Class parses each line from the hex file to fetch address and data which are then inserted into the hash table. Parsing is carried as per the intel hexadecimal object file format specification.

Author
Mallikarjun Tirlapur

Member Function Documentation

◆ parseRecord()

Record com.hobby.project.LineParser.parseRecord ( String  record)

Parses each record and updates the record fields of the class Record.

Parameters
recordrecord is a line from the hex file which starts with ":"
Returns
instance of Record.
Here is the caller graph for this function:

◆ processRecord()

LinkedHashMap<Long, String> com.hobby.project.LineParser.processRecord ( LinkedHashMap< Integer, String >  lnTbl)

Each line is processed and based on the type of the record, memory load address is determined.

Parameters
lnTblhash table consisting of keys - line number and values - string record
Returns
linked hash table containing memory load address and bin data
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: