mirror of
https://github.com/Pecusx/Young-lumberjack.git
synced 2026-05-20 22:33:54 +02:00
ex.py if no Width then 40
This commit is contained in:
@@ -14,7 +14,7 @@ def write_asm(atrview, out, page, line_from, line_to, skip_left, skip_right):
|
||||
for p in s['Pages']:
|
||||
if (isinstance(page, int) and p['Nr'] == page) or (isinstance(page, str) and p['Name'] == page):
|
||||
dta = p['View']
|
||||
width = p.get(['Width'], 40) * 2 # 2 hex chars per byte or 40
|
||||
width = p.get('Width', 40) * 2 # 2 hex chars per byte or 40
|
||||
dtas = [dta[i * width:(i + 1) * width] for i in range(len(dta) // width)]
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user