Skip to content

Commit 0753834

Browse files
authored
Merge pull request #330 from boriel/release/bumpversion
Release/bumpversion
2 parents ceba1de + 2e1fa88 commit 0753834

7 files changed

Lines changed: 64 additions & 55 deletions

File tree

Changelog.md

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
[v1.10.0](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.10.0)
1+
[v1.10.1](https://github.com/boriel/zxbasic/tree/v1.10.1)
2+
===
3+
+ Deprecating `zxb` executable in favour of `zxbc`
4+
+ ! Many bugs fixed (CODE, VAL, preprocessor...)
5+
+ ! Improved stability
6+
+ Can now hide LOAD messages using -D HIDE_LOAD_MSG
7+
+ Improved Windows deployment
8+
+ Fixes a Warning for python 3.8.x
9+
10+
[v1.10.0](https://github.com/boriel/zxbasic/tree/v1.10.0)
211
===
312
+ ! Fix warning in arrays boundaries checks
413
+ Added support for ZX Next extended ASM instruction set
@@ -8,57 +17,57 @@
817
+ Improved compatibility with Sinclair BASIC (--sinclair)
918
+ Updates testing and parsing tools
1019
+ Code generation optimized
11-
+ Many bugfixes and improves stability
20+
+ Many bugfixes and improved stability
1221
+ Updates in online documentation
1322

14-
[v1.9.9](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.9)
23+
[v1.9.9](https://github.com/boriel/zxbasic/tree/v1.9.9)
1524
===
1625
+ ! Fix warning in parameters ByRef
1726
+ Makes LOAD and SAVE to ignore BREAK
1827
+ ! Little bug fixes and better stability
1928
+ Some docs and README fixes and improvements
2029

21-
[v1.9.8](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.8)
30+
[v1.9.8](https://github.com/boriel/zxbasic/tree/v1.9.8)
2231
===
2332
+ ! Fix memory leak bug when doing procrustean substring assignation
2433
+ Also optimizes substring access not allocating mem when not needed
2534

26-
[v1.9.7](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.7)
35+
[v1.9.7](https://github.com/boriel/zxbasic/tree/v1.9.7)
2736
===
2837
+ Allow some extra chars within the ASM sections for 3rd party assemblers
2938
+ ! Little bugfixes
3039
+ Now printing at the end scrolls up the screen!
3140

32-
[v1.9.6](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.6)
41+
[v1.9.6](https://github.com/boriel/zxbasic/tree/v1.9.6)
3342
===
3443
+ ! Bugfix: grammar errors for RESTORE
3544
+ Change LD (IX/IY + NN), r instructions to standardize it
3645

37-
[v1.9.5](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.5)
46+
[v1.9.5](https://github.com/boriel/zxbasic/tree/v1.9.5)
3847
===
3948
+ ! Bugfix: error compiling to binary with headerless mode (thx to em00k)
4049
+ ! Bugfix: fixes several crashes under some conditions
4150

42-
[v1.9.4](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.4)
51+
[v1.9.4](https://github.com/boriel/zxbasic/tree/v1.9.4)
4352
===
4453
+ ! Bugfix: Fixes escape code for backslash (thx to em00k)
4554

46-
[v1.9.3](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.3)
55+
[v1.9.3](https://github.com/boriel/zxbasic/tree/v1.9.3)
4756
===
4857
+ ! Bugfix: fixes some bugs in the parser to improve stability.
4958

50-
[v1.9.2](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.2)
59+
[v1.9.2](https://github.com/boriel/zxbasic/tree/v1.9.2)
5160
===
5261
+ ! Bugfix: fixes a bug in the optimizer (-O3 and -O4)
5362
+ Add `fastplot.bas` library
5463

55-
[v1.9.1](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.1)
64+
[v1.9.1](https://github.com/boriel/zxbasic/tree/v1.9.1)
5665
===
5766
+ ! Bugfix: array access read / write might overflow. Fixed.
5867
+ Array access speedup and optimization.
5968
+ Dropped support for PyPy and Python 2.x
6069

61-
[v1.9.0](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.9.0)
70+
[v1.9.0](https://github.com/boriel/zxbasic/tree/v1.9.0)
6271
===
6372
+ New and completely refactored optimizer which now allow patterns.<br />
6473
This new optimizer (after a year of hard work) not only optimizes better,<br />
@@ -68,7 +77,7 @@
6877
+ zxbasm allows labels to be declared without using colon.
6978
+ Some other little optimization
7079

71-
[v1.8.10](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.10)
80+
[v1.8.10](https://github.com/boriel/zxbasic/tree/v1.8.10)
7281
===
7382
+ ! Bugfix: `FLASH 8` and `BRIGHT 8` were not working correctly. Fixed.
7483
+ Changelog file renamed to `Changelog.md` and renovated. Now uses Markdown.
@@ -78,29 +87,29 @@
7887
+ Add `--append-binary` command line flag to append binaries to tape file
7988
+ Add `--append-headless-binary` cmdlie flag to do like the above, but headless.
8089

81-
[v1.8.9](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.9)
90+
[v1.8.9](https://github.com/boriel/zxbasic/tree/v1.8.9)
8291
===
8392
+ ! Bugfix: Crash in `READ` and `DATA` sentences under some cases
8493
+ ! Bugfix: Fix `INT` to behave like the original one (Round to -INF)
8594
+ ! Bugfix: `--array-check` was not working properly. Fixed!
8695

87-
[v1.8.8](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.8)
96+
[v1.8.8](https://github.com/boriel/zxbasic/tree/v1.8.8)
8897
===
8998
+ ! Bugfix: fix 32 bit operations (`DIV`, `MOD`...)
9099

91-
[v1.8.7](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.7)
100+
[v1.8.7](https://github.com/boriel/zxbasic/tree/v1.8.7)
92101
===
93102
+ ! Bugfix: do not remove ASM blocks (optimize)
94103

95-
[v1.8.6](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.6)
104+
[v1.8.6](https://github.com/boriel/zxbasic/tree/v1.8.6)
96105
===
97106
+ ! Bugfix: `END` instruction was not returning result. Fixed.
98107

99-
[v1.8.5](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.5)
108+
[v1.8.5](https://github.com/boriel/zxbasic/tree/v1.8.5)
100109
===
101110
+ ! Bugfix: crash on bad array declaration
102111

103-
[v1.8.4](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.4)
112+
[v1.8.4](https://github.com/boriel/zxbasic/tree/v1.8.4)
104113
===
105114
+ ! Several bugfixes with contants declaration
106115
+ Suport for UTF-8 BOM files
@@ -109,22 +118,22 @@
109118
+ ! Other bugfixes and better stability
110119
+ Better warning explanation under some circumstances
111120

112-
[v1.8.3](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.3)
121+
[v1.8.3](https://github.com/boriel/zxbasic/tree/v1.8.3)
113122
===
114123
+ ! Bugfix in the peephole optimizer (`-O2`)
115124
+ ! Several bugfixes to improve stability
116125
+ Optimization in the peephole optimizer (`-O1`)
117126
+ Support for extended array str element operations
118127
+ ! Other syntax bugfixes
119128

120-
[v1.8.2](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.2)
129+
[v1.8.2](https://github.com/boriel/zxbasic/tree/v1.8.2)
121130
===
122131
+ ! Bugfixes in the peephole optimizer
123132
+ Shorter and faster generated code (deep optimizations)
124133
+ ! Bugfix in the `PRINT42` routine that now supports newlines, etc
125134
+ Implemented routine `input42` (`INPUT42.BAS`) for `PRINT42` mode
126135

127-
[v1.8.1](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.1)
136+
[v1.8.1](https://github.com/boriel/zxbasic/tree/v1.8.1)
128137
===
129138
+ ! Bugfixes in the peephole optimizer
130139
+ ! Bugfix in `OUT` instruction
@@ -133,50 +142,50 @@
133142
* Added `basic.bas` library (meta-interpreter) and `eval.bas` example!!
134143
(thanks to @mcleod_ideafix!!!)
135144

136-
[v1.8.0](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.8.0)
145+
[v1.8.0](https://github.com/boriel/zxbasic/tree/v1.8.0)
137146
===
138147
+ ! Bugfixes in the peephole optimizer (`-O3`)
139148
+ Better optimized code
140149
+ Improved compiling speed and more stability
141150
+ Fixes minor errors and bugs
142151
+ Now single line `IF` sentences does not require `END IF`
143152

144-
[v1.7.2](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.7.2)
153+
[v1.7.2](https://github.com/boriel/zxbasic/tree/v1.7.2)
145154
===
146155
+ ! Bugfixes in libraries `esxdos.bas` and `memcopy.bas`
147156
+ Improved `pong.bas` example
148157
+ Improved readme file :) (thanks to @harko and @haplo)
149158

150-
[v1.7.1](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.7.1)
159+
[v1.7.1](https://github.com/boriel/zxbasic/tree/v1.7.1)
151160
===
152161
+ ! Bugfixes with `-O3` and `DATA` statements
153162
+ Little improvements
154163
+ Updates `README.md` file and added `TESTING.md` one.
155164

156-
[v1.7.0](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.7.0)
165+
[v1.7.0](https://github.com/boriel/zxbasic/tree/v1.7.0)
157166
===
158167
+ Added `READ`, `DATA`, `RESTORE` (finally!)
159168
+ Allows to call SUBs with no parenthesis (e.g. `mySUB 1, 2+a`)
160169
+ Allows to call FUNCTIONS with 1 or no params with no parenthesis (e.g. `MyFunc x+2`)
161170
+ Some bug fixes for better stability
162171

163-
[v1.6.13](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.13)
172+
[v1.6.13](https://github.com/boriel/zxbasic/tree/v1.6.13)
164173
===
165174
+ ! Fixes and improves strict mode checking
166175
+ Adds `#error` and `#warning` directives
167176

168-
[v1.6.12](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.12)
177+
[v1.6.12](https://github.com/boriel/zxbasic/tree/v1.6.12)
169178
===
170179
+ Adds missing default font (Haplo) for Radastan mode
171180
+ ! Bugfixes and little improvements
172181

173-
[v1.6.11](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.11)
182+
[v1.6.11](https://github.com/boriel/zxbasic/tree/v1.6.11)
174183
===
175184
+ ! Fix infinite recursive include in Windows OS (yes, win sucks)
176185
+ Little optimizations in `memset()` and `RND`
177186
+ Standardize file includes like in cpp
178187

179-
[v1.6.10](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.10)
188+
[v1.6.10](https://github.com/boriel/zxbasic/tree/v1.6.10)
180189
===
181190
+ Added many more drawing primitives for Radastan Mode
182191
+ Added instructions `ON .. GOTO` and `ON .. GOSUB`
@@ -186,7 +195,7 @@
186195
+ Allows array initialization with @label references
187196
+ Switch `.bas` libraries (not the compiler) to **MIT license**
188197

189-
[v1.6.9](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.9)
198+
[v1.6.9](https://github.com/boriel/zxbasic/tree/v1.6.9)
190199
===
191200
+ ! Fixes a bug in the peephole (`-O3`) optimizer
192201
+ Improved speed for `Integer` / `Unteger` operations
@@ -197,13 +206,13 @@
197206
+ ! Fixes and improvements to the ESXDOS library (by @mcleod_ideafix)
198207
+ Added new ESXDOS sample program (directory tree listing)
199208

200-
[v1.6.8](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.8)
209+
[v1.6.8](https://github.com/boriel/zxbasic/tree/v1.6.8)
201210
===
202211
+ ! Fixed some bugs in the assembler
203212
+ ! Fixed a bug when calling a function in advance
204213
+ ! Fixed a problem in tox, setting the terminal to UTF-8
205214

206-
[v1.6.7](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.7)
215+
[v1.6.7](https://github.com/boriel/zxbasic/tree/v1.6.7)
207216
===
208217
+ Added more testing and bitbucket pipelines using tox
209218
+ ! Do not optimize user inlined ASM. It must go as is.
@@ -213,14 +222,14 @@
213222
+ ! Fix to make make it to work in python 2.7
214223
+ ! Refactorize the assembler to use centralized configuration
215224

216-
[v1.6.6](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.6.6)
225+
[v1.6.6](https://github.com/boriel/zxbasic/tree/v1.6.6)
217226
===
218227
+ ! Fixed a bug in constant evaluation
219228
+ ! Allows non constant initialization of scalar variables like DIM a$ = "hi"
220229
+ ! Fix bugs in the assembler not allowing complex expressions
221230
+ ! Fix a rare crash when using functions before declaring them
222231

223-
[v1.4.0.x](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.4.0.x)
232+
[v1.4.0.x](https://github.com/boriel/zxbasic/tree/v1.4.0.x)
224233
===
225234

226235
This is a long (near 3 year) set of versions in which the compiler
@@ -240,7 +249,7 @@ The major feature in this release is the posibility to declare nested functions.
240249
These functions are declared within others, and can only be called from within
241250
their respective parent function body.
242251

243-
[v1.3.0](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.3.0)
252+
[v1.3.0](https://github.com/boriel/zxbasic/tree/v1.3.0)
244253
===
245254
+ ! Fixed a bug in `USR <string>`
246255
+ ! Fixed a bug in `SAVE` / `LOAD`
@@ -254,7 +263,7 @@ their respective parent function body.
254263
+ ! Fixed a bug with peephole optimizer (`-O3`)
255264
+ Some changes and code refactorization towards 2.x branch
256265

257-
[v1.2.9](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.2.9)
266+
[v1.2.9](https://github.com/boriel/zxbasic/tree/v1.2.9)
258267
===
259268
+ ! Fixed a serious bug with ALL integer (signed/unsigned) operands
260269
which were not working correctly under some circumstances.
@@ -271,7 +280,7 @@ their respective parent function body.
271280
+ Fixed more than 50 other minor bugs in both the compiler and the assembler
272281
+ `THEN` keyword is now optional in `IF` statements
273282

274-
[v1.2.8](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.2.8)
283+
[v1.2.8](https://github.com/boriel/zxbasic/tree/v1.2.8)
275284
===
276285
+ Code rearranged and restructured for future deep refactorizations.
277286
+ ! Complete rewritten backend (or almost!) to fix a bug in code
@@ -298,7 +307,7 @@ their respective parent function body.
298307
+ ! `CSRLN` and `POS` optimized to this new `PRINT` scheme!
299308
... and much much more
300309

301-
[v1.2.7](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.2.7)
310+
[v1.2.7](https://github.com/boriel/zxbasic/tree/v1.2.7)
302311
===
303312
+ `DRAW` is now much faster (and a bit more larger)
304313
+ `PLOT`, `DRAW` and `CIRCLE` now supports change screen address (for double-buffering)
@@ -316,7 +325,7 @@ their respective parent function body.
316325
optimized for space (and also slightly faster)
317326
+ Added Flight Simulator example
318327

319-
[v1.2.6](https://bitbucket.org/zxbasic/zxbasic/commits/tag/v1.2.6)
328+
[v1.2.6](https://github.com/boriel/zxbasic/tree/v1.2.6)
320329
===
321330
+ Bitwise `bAND`, `bOR`, `bXOR`, `bNOT` finally added for 8, 16 and 32 bits
322331
+ The assembler now supports `ALIGN <integer>` directive

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "zxbasic"
3-
version = "1.10.0"
3+
version = "1.10.1"
44
description = "Boriel's ZX BASIC Compiler"
55
authors = ["Jose Rodriguez <boriel@gmail.com>"]
66
license = "GPL-3.0-or-later"

setup.py

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

3131
setup_kwargs = {
3232
'name': 'zxbasic',
33-
'version': '1.10.0',
33+
'version': '1.10.1',
3434
'description': "Boriel's ZX BASIC Compiler",
3535
'long_description': None,
3636
'author': 'Jose Rodriguez',

tests/functional/test_cmdline.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
>>> os.environ['COLUMNS'] = '80'
44

55
>>> process_file('arrbase1.bas', ['-q', '-S', '-O --asm', '-O --mmap arrbase1.map'])
6-
usage: zxb [-h] [-d] [-O OPTIMIZE] [-o OUTPUT_FILE] [-T] [-t] [-B] [-a] [-A]
7-
[-S ORG] [-e STDERR] [--array-base ARRAY_BASE]
8-
[--string-base STRING_BASE] [-Z] [-H HEAP_SIZE] [--debug-memory]
9-
[--debug-array] [--strict-bool] [--enable-break] [-E] [--explicit]
10-
[-D DEFINES] [-M MEMORY_MAP] [-i] [-I INCLUDE_PATH] [--strict]
11-
[--headerless] [--version] [--parse-only]
12-
[--append-binary APPEND_BINARY]
13-
[--append-headless-binary APPEND_HEADLESS_BINARY] [-N]
14-
PROGRAM
15-
zxb: error: Option --asm and --mmap cannot be used together
6+
usage: zxbc.py [-h] [-d] [-O OPTIMIZE] [-o OUTPUT_FILE] [-T] [-t] [-B] [-a]
7+
[-A] [-S ORG] [-e STDERR] [--array-base ARRAY_BASE]
8+
[--string-base STRING_BASE] [-Z] [-H HEAP_SIZE]
9+
[--debug-memory] [--debug-array] [--strict-bool]
10+
[--enable-break] [-E] [--explicit] [-D DEFINES] [-M MEMORY_MAP]
11+
[-i] [-I INCLUDE_PATH] [--strict] [--headerless] [--version]
12+
[--parse-only] [--append-binary APPEND_BINARY]
13+
[--append-headless-binary APPEND_HEADLESS_BINARY] [-N]
14+
PROGRAM
15+
zxbc.py: error: Option --asm and --mmap cannot be used together
1616

1717
>>> process_file('arrbase1.bas', ['-q', '-S', '-O -D EMPTY_MACRO'])
1818

zxb/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.10.0'
1+
VERSION = '1.10.1'

zxb/zxb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def main(args=None, emitter=None):
8585
# ------------------------------------------------------------
8686
# Command line parsing
8787
# ------------------------------------------------------------
88-
parser = argparse.ArgumentParser(prog='zxb')
88+
parser = argparse.ArgumentParser()
8989
parser.add_argument('PROGRAM', type=str,
9090
help='BASIC program file')
9191
parser.add_argument('-d', '--debug', dest='debug', default=OPTIONS.Debug.value, action='count',

zxbasm/zxbasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main(args=None):
3333
zxbpp.init()
3434

3535
# Create option parser
36-
o_parser = argparse.ArgumentParser(prog='zxbasm')
36+
o_parser = argparse.ArgumentParser()
3737
o_parser.add_argument('PROGRAM', type=str, help='ASM program file')
3838
o_parser.add_argument("-d", "--debug", action="count", default=OPTIONS.Debug.value,
3939
help="Enable verbosity/debugging output")

0 commit comments

Comments
 (0)