Skip to content

Commit 61703c4

Browse files
authored
Merge pull request #655 from boriel/bugfix/O4_poke
Bugfix/o4 poke
2 parents 6ffce80 + 379e5d3 commit 61703c4

File tree

12 files changed

+338
-334
lines changed

12 files changed

+338
-334
lines changed

src/api/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import shelve
77
import signal
88
from functools import wraps
9-
from typing import IO, Any, Callable, Iterable, List, Optional, Union, TypeVar
9+
from typing import IO, Any, Callable, Iterable, List, Optional, TypeVar, Union
1010

1111
from src.api import constants, errmsg, global_
1212

src/arch/z80/optimizer/__init__.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414

1515

1616
def init():
17-
global LABELS
18-
global JUMP_LABELS
19-
2017
LABELS.clear()
2118
JUMP_LABELS.clear()
2219

@@ -172,7 +169,7 @@ def initialize_memory(basic_block):
172169
get_labels(basic_block)
173170

174171

175-
def optimize(initial_memory):
172+
def optimize(initial_memory: list[str]) -> str:
176173
"""This will remove useless instructions"""
177174
global BLOCKS
178175
global PROC_COUNTER

0 commit comments

Comments
 (0)