mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
Removed unused function
This commit is contained in:
parent
61122bb354
commit
189079a9c7
19
pyasm/pyasm
19
pyasm/pyasm
@ -92,25 +92,6 @@ def error(msg):
|
||||
print(msg)
|
||||
sys.exit(10)
|
||||
|
||||
def str2int(s):
|
||||
"""Convert string to numeric value.
|
||||
|
||||
s numeric string (decimal or octal)
|
||||
|
||||
Returns the numeric value.
|
||||
"""
|
||||
|
||||
base = 10
|
||||
if s[0] == '0':
|
||||
base = 8
|
||||
|
||||
try:
|
||||
value = int(s, base=base)
|
||||
except:
|
||||
return None
|
||||
|
||||
return value
|
||||
|
||||
def write_list(code, addr, lnum, line):
|
||||
"""Generate one line of listing file.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user