Skip to content

Commit c582ef4

Browse files
authored
Merge pull request #384 from boriel/feature/architectures
Feature/architectures
2 parents 617a355 + e124426 commit c582ef4

283 files changed

Lines changed: 55 additions & 813 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.

api/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def init():
6363
OPTIONS.add_option('arrayCheck', bool, False)
6464
OPTIONS.add_option('enableBreak', bool, False)
6565
OPTIONS.add_option('emitBackend', bool, False)
66-
OPTIONS.add_option('arch', str, 'zx48k')
6766
OPTIONS.add_option('__DEFINES', dict, {})
6867
OPTIONS.add_option('explicit', bool, False)
6968
OPTIONS.add_option('Sinclair', bool, False)
7069
OPTIONS.add_option('strict', bool, False) # True to force type checking
7170
OPTIONS.add_option('zxnext', bool, False) # True to enable ZX Next ASM opcodes
71+
OPTIONS.add_option('architecture', str, None) # Architecture
7272

7373

7474
init()

arch/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# -*- coding: utf-8 -*-
33
# vim:ts=4:et:sw=4:
44

@@ -8,3 +8,5 @@
88
__all__ = [
99
'zx48k',
1010
]
11+
12+
AVAILABLE_ARCHITECTURES = __all__

0 commit comments

Comments
 (0)