Skip to content

Commit 82d7e43

Browse files
authored
Merge pull request #310 from boriel/feature/refactorize_z80
Move z80 opcodes listing into zxbasm
2 parents a396bc3 + 49b6d5a commit 82d7e43

5 files changed

Lines changed: 3 additions & 4 deletions

File tree

arch/zx48k/optimizer/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from .patterns import RE_OUTC, RE_INDIR16
44
from .helpers import single_registers
5-
import z80
5+
from zxbasm import z80
66

77
# Dict of patterns to normalized instructions. I.e. 'ld a, 5' -> 'LD A,N'
88
Z80_PATTERN = {}

zxbasm/asm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33
# vim: ts=4:et:sw=4
44

5-
from z80 import Opcode, Z80SET
5+
from zxbasm.z80 import Opcode, Z80SET
66
from api.errors import Error
77
import re
88

zxbasm/asmparse.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
import os
1515
import re
16-
from zxbasm import asmlex
16+
from zxbasm import asmlex, basic
1717
import ply.yacc as yacc
1818

1919
from zxbasm.asmlex import tokens # noqa
@@ -1501,7 +1501,6 @@ def generate_binary(outputfname, format_, progname='', binary_files=None, headle
15011501
progname = os.path.basename(outputfname)[:10]
15021502

15031503
if OPTIONS.use_loader.value:
1504-
import basic # Minimalist basic tokenizer
15051504

15061505
program = basic.Basic()
15071506
if org > 16383: # Only for zx48k: CLEAR if above 16383
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)