Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request boriel-basic#655 from boriel/bugfix/O4_poke
Browse files Browse the repository at this point in the history
Bugfix/o4 poke
  • Loading branch information
boriel committed Aug 1, 2023
2 parents 6ffce80 + 379e5d3 commit 61703c4
Show file tree
Hide file tree
Showing 12 changed files with 338 additions and 334 deletions.
2 changes: 1 addition & 1 deletion src/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import shelve
import signal
from functools import wraps
from typing import IO, Any, Callable, Iterable, List, Optional, Union, TypeVar
from typing import IO, Any, Callable, Iterable, List, Optional, TypeVar, Union

from src.api import constants, errmsg, global_

Expand Down
5 changes: 1 addition & 4 deletions src/arch/z80/optimizer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@


def init():
global LABELS
global JUMP_LABELS

LABELS.clear()
JUMP_LABELS.clear()

Expand Down Expand Up @@ -172,7 +169,7 @@ def initialize_memory(basic_block):
get_labels(basic_block)


def optimize(initial_memory):
def optimize(initial_memory: list[str]) -> str:
"""This will remove useless instructions"""
global BLOCKS
global PROC_COUNTER
Expand Down

0 comments on commit 61703c4

Please sign in to comment.