Skip to content

Commit b9268c2

Browse files
authored
Merge pull request #386 from boriel/feature/zxnext-arch
Merge pull request #385 from boriel/feature/architectures
2 parents a221924 + 93cdd8a commit b9268c2

288 files changed

Lines changed: 33653 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

arch/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
import importlib
66

7-
from . import zx48k
8-
97

108
__all__ = [
119
'zx48k',
10+
'zxnext'
1211
]
1312

1413
AVAILABLE_ARCHITECTURES = __all__

arch/zxnext/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
# vim:ts=4:et:sw=4:
4+
5+
from . import beep
6+
from .translator import * # noqa
7+
8+
import api.global_
9+
from api.constants import TYPE
10+
11+
12+
__all__ = [
13+
'beep',
14+
]
15+
16+
17+
# -----------------------------------------
18+
# Arch initialization setup
19+
# -----------------------------------------
20+
api.global_.PARAM_ALIGN = 2 # Z80 param align
21+
api.global_.BOUND_TYPE = TYPE.uinteger
22+
api.global_.SIZE_TYPE = TYPE.ubyte
23+
api.global_.PTR_TYPE = TYPE.uinteger
24+
api.global_.STR_INDEX_TYPE = TYPE.uinteger
25+
api.global_.MIN_STRSLICE_IDX = 0 # Min. string slicing position
26+
api.global_.MAX_STRSLICE_IDX = 65534 # Max. string slicing position

0 commit comments

Comments
 (0)