Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions arch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

import importlib

from . import zx48k


__all__ = [
'zx48k',
'zxnext'
]

AVAILABLE_ARCHITECTURES = __all__
Expand Down
26 changes: 26 additions & 0 deletions arch/zxnext/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim:ts=4:et:sw=4:

from . import beep
from .translator import * # noqa

import api.global_
from api.constants import TYPE


__all__ = [
'beep',
]


# -----------------------------------------
# Arch initialization setup
# -----------------------------------------
api.global_.PARAM_ALIGN = 2 # Z80 param align
api.global_.BOUND_TYPE = TYPE.uinteger
api.global_.SIZE_TYPE = TYPE.ubyte
api.global_.PTR_TYPE = TYPE.uinteger
api.global_.STR_INDEX_TYPE = TYPE.uinteger
api.global_.MIN_STRSLICE_IDX = 0 # Min. string slicing position
api.global_.MAX_STRSLICE_IDX = 65534 # Max. string slicing position
Loading