Methods
parse_hex_code(entry)
Function that return the hex code without comments, return, tab, spaces
Parameters:
Name | Type | Description |
---|---|---|
entry |
string with comments, hex code, spaces... |
- Source:
Throws:
error in case of incorrect entry
Returns:
hex code
parse_hex_str_to_instructions(entry, bullGamma) → {Array}
Given hexadecimal code for Bull Gamma 3, returns a set of instructions for the machine.
Parameters:
Name | Type | Description |
---|---|---|
entry |
the string representing the code to be parsed. code may include single line comments starting with --. | |
bullGamma |
the machine to which the returned instructions should be attached |
- Source:
Returns:
the array of parsed instructions
- Type
- Array