1.23.0 - 23.4.2026
- Added
SIZEOFoperator for labels - Added
$$$labeland$$$$labeloperators for labels - refactoring device - page numbering, error values changed from -1 to 0x7F00+ (
get_page_at) - small internal bug fixes (edge case with negative blocks,
_glue, SLD export of EQU adjusted) - CI: binary reproducibility tested weekly
1.22.0 - 15.3.2026
- Added substitution glue operator
_to concatenate substitution results - Added string literals concatenating operator
.. - Added
DP(aliasDEFP) directive to define Pascal strings BLOCK(DS) can take set of values for init (like DB)>can be used to indent labels- Intel HEX output format added:
SAVEHEX,HEXOUT,HEXEND,--hex - Added option
--cleanonerrorto remove binary outputs upon any error (as output may be corrupted) BPLISTsupports now also FUSESETBPhas optional string argument for "conditional" breakpoints (depends on bplist type)DEVICEZX-like devices can now init with all-zeroed memory by using RAMTOP -1- CI: you can download executables from recent builds (windows, macos, freebsd, linux), for testing
- refactored: relocation example has more size-optimized relocator code
- docs: added new chapter Assembling Process
- docs: minor fixes/extensions
1.21.1 - 16.1.2026
BPLISTsupports now also MAMESAVENEX CLOSEcan append multiple files- numeric constants can separate/group digits also by underscore
- JR and DJNZ added to "smart" SMC offset instructions:
abc+*: jr $ SLDOPTextended with swapon/swapoff command to adjust SLD files- Lua: version upgrade to 5.5.0 (from 5.4.7)
- Lua: minor extensions and modifications to API
- refactored: temporary labels must match flow only in last pass (earlier passes can differ)
- refactored: macros now handle large amount of macros defined better (like 64ki of macros)
- fix invalid BASIC line length in
SAVETAPloader - fix local labels inside macros in modules
- fix local-label struct name usage
- warnings: added -Wfileorg when ORG is used to jump addresses while file output is active
- docs: minor fixes/extensions
1.21.0 - 15.3.2025
- C++17 standard is now required minimum (to compile sjasmplus sources) (GCC9 for example)
INCBIN,INCHOBandINCTRDsupport now include paths priority (angle <filename> vs "filename")- also
SAVENEXwill respect include paths for source files (BMP, append) - include paths which can't be opened before assembling are now reported in error message
- include paths which start with literal tilde '~' are reported in error message
- include options
-i, -I, --inccan take path from next CLI argument (new recommended syntax) - option
--fullpathhas now three states including full absolute paths - added Amstrad CPC device AMSTRADCPCPLUS - by Laurent Carlier
- added Amstrad CPC+
SAVECPRto save CPR cartridge - by Laurent Carlier - ZX Next CSpect emulator v2.19.9.1:
breakopcode changed toFD 00 - ZX Next CSpect emulator v3.0.1.5b: new opcodes
setbrkandclrbrk - fix: windows cmd.exe console state after running sjasmplus.exe
- Lua: fix sj.insert_label to apply current namespace to name
- Lua: new sj.get_modules to get current modules namespace
- Lua: minor version upgrade to 5.4.7 (from 5.4.6)
- Lua: bundled Lua is now built and linked as C++ code (fixes memory leaks in edge cases)
- minor bugfixes in specific edge cases
- refactored lot of code related to file names and manipulation (to use C++17 filesystem library)
1.20.3 - 23.6.2023
- added alias
--definefor-D - added string-literals suffixes Z and C to add zero or set high bit of last char
- end of line backslash continues source line (limited support, not recommended)
- Lua: minor version upgrade to 5.4.6 (from 5.4.4)
- minor updates to Makefile
1.20.2 - 14.2.2023
- added optional second argument for
DUPto have index variable - option
--expwill create file even when noEXPORTis used - fixing variable name-clash when compiling against musl-clib
- LuaBridge updated, CMake and Makefile updated a bit
- minor bugfixes/improvements in parser in specific edge cases
1.20.1 - 29.7.2022
- parse decimal numeric constants with warning (for easier Lua 5.4 life)
- added
SAVEAMSDOS(like SAVEBIN with AMSDOS header) - added "smart" SMC offset syntax for self-modify-code labels:
abc+*: or 123 - added
DEFDEVICEto define custom devices - Makefile cleanup
1.20.0 - 13.6.2022
- Lua: upgrade to 5.4, replacing tolua++ bindings with LuaBridge2.6 library, extending some bindings
- Lua: bindings slightly modified (required by upgrade), refreshed docs, added test coverage
- Lua: the 3rd party extensions (BTW not working for many years) are obsolete in 5.4 and removed
- Lua: more accurate errors/warning location reported even in complex cases
- warnings: added -Wall, --help=warnings shows on/off status, rdlow off by default
- Added HIGH mode to relocation data generator (MSB-only relocation mode)
- many open-file "fatal" errors become "non-fatal", assembling will continue
- deprecated features removed: --syntax=m, label
absin expressions --color=autowill stay no-color when env.var.NO_COLORis defined- refactorings, improving some error messages and parsing, small fixes in parsing logic
- fix listing of Lua's sj.parse_code (eol-comments), minor memory leaks fixed
- fix relocation of temporary labels in expressions
- invalid CLI options are reported as regular errors (also changing exit code)
- errors are colored similarly to gcc (only keyword has color), console input name is
<stdin>
1.19.0 - 31.3.2022
- added Amstrad CPC devices (
AMSTRADCPC464,AMSTRADCPC6128) - by Oli Wilkinson - added Amstrad CPC save snapshot and CDT (
SAVECPCSNA,SAVECDT) - by Oli Wilkinson - added
SAVE3DOS(like SAVEBIN with +3DOS header) - the deprecated "ok" warning suppression is removed, use "<warning-id>-ok" comment or -Wno-...
- new temporary label suffix syntax
_band_f, enabling them for all expressions - fix
--longptrmode to keep 32b address whenDS 0is used - added fake instructions adc|add|sbc|sub de,bc|de|hl|sp
- dec|inc|pop|push will accept also single-comma multiarg in --syntax=a mode
- DUP/REPT will now accept also zero count (skipping the block)
- DEFL labels can be defined even as late as in last pass
- bugfixes (macros, listing, file names in errors, SLD reversepop data)
1.18.3 - 29.8.2021
- added
--colorto enable/disable ANSI coloring of errors/warnings - added
--syntax=smode to disable sub-word substitutions of DEFINEs - added at-sign prefix for macro local labels to act as non-macro local label
SAVETRDaccepts names containing dot ("z.x.B" is "z.x" with extension "B") - by Dart AlverSAVETRDhas optional argument to save BASIC with variables (length_minus_variables)- minor bugfixes (conditional block parser)
1.18.2 - 14.2.2021
- [may break old sources] new exist operator to check label existence
- the
--syntax=imode makes now also register parsing case insensitive - minor bugfixes (predefined values, savenex BMP loader less strict about "colors used" content)
1.18.1 - 23.1.2021
- Big-Endian hosts support (experimental and not tested continuously)
- added "listall", "listact" commands to OPT - to switch between listing types
WHILEhas optional argument to set explicit guardian-counterASSERThas optional argument (to add description/notes for expression)SLOTandMMUwill now accept also starting address of slot instead of its number- fix: option
--symwas not exporting labels starting with underscore - fix:
SAVENEXBMP-loader bug when certain builds of sjasmplus were unable to open BMP files - fix: after
STRUCTinstance the "main" label is not polluted by last field of STRUCT - minor bugfixes in parser, windows cmake-builds have now icon
- docs: adding "Index" section
- docs: adding some missing information (
__DATE__,__TIME__), fixing HTML anchor names
1.18.0 - 12.12.2020
- [may break old sources] the colon between end of EQU/DEFL/= expression and instruction is mandatory
- [may break old sources] new abs operator for absolute integer value
- new system of warnings (and suppression), the "; ok" comments are now deprecated
DISPLAYhas now also binary and char formattingDEFINE+added to [re]define identifier without errorELSEIFadded to conditional assembling arsenalWHILEadded for conditional loops- added "NOSLOT64K" device with 2MiB of virtual memory
LABELSLISThas new optional argument to dump 16bit "virtual labels"CSPECTMAPexports STRUCT symbols with more detail (instance labels with physical address)- SMC offset syntax for self-modify-code labels for source brevity
- added exclamation mark prefix for labels to not affect following local labels
- added "listmc" command to OPT - to list only lines with machine code bytes
- added
--lstlab=sortvariant to have symbols in listings in predictable order - minor bugfixes in parser and listing-line-numbering, refactored symbols/labels implementation
- Added example (chargfx2asm) how to use sjasmplus as byte-processor for binary files
- SLD data improvements based on Maziac's feedback and DeZog's needs
1.17.0 - 8.8.2020
STRUCThas newTEXTpseudo-instruction to define "DB-like" dataSTRUCTinitializer block can be now multi-line (when correctly enclosed in curly braces)EQUnow allows for optional override of page number assigned to the new symbol- new $$$ and $$$$ operators to retrieve "physical" address/page inside DISP block
- instruction
out (c),0now emits warning (can be suppressed by the "; ok" comment) - fixed listing of structures using long BLOCK fields (machine code was correct, but listing not)
- fixed some memory leaks, undefined behaviour and unaligned memory access
1.16.0 - 27.7.2020
LUAthe new emit warning (v1.15.1) is now suppressible- Predefined defines extended and renamed (following gcc/clang ones)
- Added relocation data generator, check also example
- bugfixes/improvements in parser like: operators
not,low,highcan be followed also by(
1.15.1 - 7.7.2020
EQUnow assigns memory page to symbol based on the symbol value and current memory mapping- this does affect also results of
LABELSLIST(Issue #111) LUAemits warning when some machine code is emitted without "ALLPASS" modifierSAVETRDrefactored: fix couple of bugs and make TRD files conform the actual TR-DOS practiceSAVETRD: new "&" modifier to produce "mono-loaders" with extra files appendedSAVETRD: added support for the unofficial 3-letter extensions ("; ok" to suppress warnings)INCTRDrefactored and added support for unofficial 3-letter extensions- fix issue #108 to detect windows drive letters at beginning of file names with full windows paths
- bugfixes: RAMTOP w/ global device, "r+w" file operations code review, memory buffer overrun in LUA
1.15.0 - 18.5.2020
- added
BPLISTandSETBPto export breakpoints info from asm for Unreal and ZEsarUX emulators - added ZX-like devices with 2/4/8 MiB of virtual memory
- the fake-sysvars/state of ZXSPECTRUM48/128/... devices reworked, moving stack down by default
- behaviour of
--fullpathoption unified across all platforms and compilers DEFARRAYhas new operator[#]to retrieve current size of array.MMUhas new optional third argument to set also address (likeORG)- use of forward reference in
IF/IFNemits only warning, and can be suppressed - internal Lua updated to 5.1.5 (last official 5.1 version)
- STDIN can be read multiple times (per each "-" argument)
- new macro/lua examples:
sj_sysvars.i.asm,section.asm,lua_sin_table.asm,union_like_structures.asm - RAM limit exceeded warning/error reworked to report with more sense, fixed bug with missing labels
SAVETRDwarning about invalid extension can be suppressed by "; ok"EMPTYTRDtakes as second argument disc label- added
--outprefixoption to prefix any output-directive filename (issue #102)
1.14.5 - 30.1.2020
- fix crash when opening source file fails
- DISP/ORG warns about being used inside DISP block (also docs extended)
1.14.4 - 13.1.2020
- added few example utility macros in tests/macro_examples/sj_library.asm (
neg r16) - added SAVENEX SCREEN BMP sub-command to include BMP loading-screen
- added support for V1.3 of NEX file format (new commands:
CFG3,PALETTE,COPPER, new screen modes) - in lua scripts:
sj.calc(..)(alias_c(..)) now substitutes defines and macro arguments - error reporting inside LUA and MACRO refactored to give better info about origin of error
- macro-arguments parser now recognizes C++ numeric literals with apostrophe as digits-group separator
- the assembler will instantly exit when run at Big-Endian platform (the rest of code is broken on BE)
- updated syntax-highlight file for KDE5 editors (Kate)
1.14.3 - 15.11.2019
- fix detection of
.end:and.ENDlabels when--dirbolis used - added export of SLD (Source Level Debugging) data, see also NDS (NextDevSystem)
- added
--longptroption to allow labels outside of 16b address space - docs: added small details about FPOS, SAVETAP, IFUSED
- fix assembling-time reported in linux
1.14.2 - 3.10.2019
- added i8080 mode (
--i8080CLI option) (it's still Z80 Zilog syntax, just limited instruction set) - added Sharp LR35902 mode (
--lr35902CLI option) (100% syntax compatibility with IDA, 95% bgb) - new
$$labeloperator to retrieve page of label - 1.14.0 include-path bugfix reverted, the "." is again automatically added (did break projects)
- small improvements/polish/extra-info in docs, INSTALL, README, few new tests added
- cmake script fix of
SYSTEM_LUA=ONoption, CirrusCI configs added for macOS and FreeBSD - few fixes of memory leaks, invalid memory access, double free/delete
1.14.1 - 30.8.2019
- refactored
SHELLEXECto use clibsystem(..)on all platforms (also MS VS), minor fixes - lua example
inc_text(result of specific request from sjasmplus user) - listing fixed when Lua was used to emit bytes and also parsed lines of assembly source
- MinGW windows exe prefers "/" file system delimiter ("\" should still work on windows (only))
- lot of small bugfixes and Cirrus CI infrastructure adjustments (windows MinGW build does run full tests)
- MS VS builds stabilized and fixed, should now work mostly on par with MinGW builds (99.5%)
- Using lgtm.com code analysis (did help to find new bugs and memory leaks)
- UnitTest++ framework added for regular C++ unit tests, first few tests added
1.14.0 - 17.8.2019
INCLUDEbugfix, now searching paths according to original documentation (may break some projects)UNDEFINEhad undocumented feature of removing also labels, cancelled (was broken beyond repair)- R800
MULUBwas producing wrong opcode all those years... fixed MODULEnames can't contain dot any more,MODULEandENDMODULEresets non-local label to_--syntaxoption:m(switch off low-mem access warning) andMadded,Aremoved- macro expansion can be inhibited by using
@in front of instruction - expression evaluator was not strictly 32 bit (64b binaries could have produced different results than 32b binaries)
- reading memory addresses 0..255 directly emits warning, use
; okcomment to suppress it. - several tests added to improve the code coverage: coveralls.io/github/z00m128/sjasmplus
- as tests were added, minor bugs were found and squashed (errors wording, etc)
1.13.3 - 21.7.2019
- bugfixes, new examples (check tests/lua_examples)
- UTF BOM are now detected, UTF8 BOM is silently skipped, UTF16/32 BOMs cause fatal error
ZXSPECTRUMNEXTdevice is now initialized with whole memory zeroed (no more ZX48 sysvars)DEFLdocumented, "no forward reference" rule relaxed forEQU- some error messages reworded to make them easier to comprehend
1.13.2 - 28.6.2019
OPThas now alsolistoffandlistoncommands- added to
--syntaxoption: case insensitive instructions,bBwadded/changed - new macro examples, minor fixes and refactoring
SAVETRDimplementation refactored (more checks, less bugs, "replace" file feature)- operators
{address}and{b address}are now official and documented
1.13.1 - 30.05.2019
- added
--syntaxcommand line option - added
OPTdirective (modifies some command line options) - added way to use structure at designed address
MACROcan be now named through label (optional syntax)- added
DEFARRAY+directive (for splitting long list ofDEFARRAYvalues) - added
CSPECTMAPdirective forMAPfiles for CSpect emulator - added support for
SJASMPLUSOPTSenvironment variable - Z80N new variants of syntax, now also
mul de : mul : pixelad hl : pixeldn hlworks - minor bugfixes, improvements and internal refactorings (error reporting)
- updated syntax-highlight file for KDE5 editors (Kate)
1.13.0 - 05.05.2019
- [may break old sources]
DEVICE: each assembling pass resets also "device". To work with "device" memory (SAVESNA,SAVETAP, ...) you must select the device (and slot and pages) before producing machine code which you want to work with (SAVESNA,SAVETAP, ...). If only singleDEVICEis used in whole source batch, then the setting is "global" and will be applied to all lines of source (in 2nd+ pass). - [may break old sources]
ZXSPECTRUM128based devices map into slots by default banks {7, 5, 2, 0}. (was {0, 5, 2, 7} in older versions) - [may break old sources]
ZXSPECTRUM128based devices have sysvars and stack set up as inUSR 0mode (ZXSPECTRUM48system variables and default stack content). - [may break old sources]
MAP+FIELDdirectives removed (STRUCTis better and working) MMUdirective (fusingSLOT+PAGEand extending them)SAVEDEVdirective (similar toSAVEBIN)SAVENEXdirective (for ZX Spectrum Next)- INCBIN: support for negative offset/length values, support for
MMUwrapping - INCBIN: support for file chunks of 64+ki size (usable with
MMU) - Fixed:
INCTRDoffset, binarySTDOUTon windows,SAVETRD,SAVEHOBfilenames - Fixed: LUA used inside macros, LUA get_word, LUA error reporting
- parser: added C++(like) numeric literals
ZXSPECTRUMNEXTdevice added- refactoring of label/define implementation = less memory leaks, more correct "label.mem_page" values, "Unreal" labels dump is more correct too
- docs: now the CSS file is actually used, and default style modified a bit
- new MACRO examples, syntax-highlight file for KDE5 editors (Kate)
1.12.0 - 07.04.2019
- Fixed parsing of expressions starting with string literal
- Fixed listing of
DSdirective with negative values, added value check warning - Fixed possible wrong indexing of some arrays internally
- Fixed parsing of single-word instructions in colon-packed-no-space macros
- Making macro arguments substitution a bit more aggressive, to work also with
DEFINE,IFDEF,IFNDEF,DEFARRAYdirectives inside macro (this gives the coder more macro power and freedom, but the error reporting may get lot more confused) - Refactoring substring substitution for macro-arguments and defines, now it should work always. To prohibit some macro/define to substitute into middle of the string, start its name with underscore, like "_VERSION".
- THIS MAY BREAK SOME OLDER SOURCES, SORRY. Also the rules for substitutions will be in the future further modified and documented, to make them more intuitive and predictable, so there may be more breakage even later.
- Adding fake instructions break and exit for CSpect emulator (
--zxnext=cspect)
1.11.1 - 01.04.2019
- Fixed global labels in
MACROand inIFUSED,IFNUSED - Fixed nested
IF-DUP-IF - Fixed local labels fail when amount of lines did change between passes
- Fixed Makefile to build when path to project contains space
- Added macro-example: turn
DJNZ .intoDJNZ $(to fix Zeus syntax source) - Added
--msg=lstand--msg=lstlaboptions to produce listing file toSTDERR - Added options to read input file from
STDINand output "raw" binary toSTDOUT
1.11.0 - 22.03.2019
- Added ZX Spectrum Next instructions support
- Added
--msgoption, directivesDGandDH - Changed listing layout to fixed-width type
- Errors, Warnings and similar are now channeled to
STDERR - Fixed string literal parser, added two apostrophes and escaped zero
- Fixed docs templates (HTML is now more valid)
- Fixed nesting
DUPissue - Fixed CRLF handling in parser
- Fixed
-Doption for multiple asm files - Fixed address display when the 64kB limit exceeded
- Fixed lost code when current memory leaves device slot in "disp" mode
- Fixed
IFinsideMACRO,DUPandREPT - Fixed
ALIGNbehavior and docs wording - Fixed
INCHOB,INCBIN(offset / length) - Fixed
INCLUDE,INCLUDELUAsystem path priority ("" vs <>) - Fixed
ENDbehavior - Fixed
DEFARRAYto work as documented - Fixed and refactored
WORD,DWORD,D24 - Fixed and extended
STRUCT - Multiple bugfixes in listing generation
- Multiple bugfixes of internal code
- Refactored options parser, instruction parser and Warning/Error system
- C++14 standard is now required minimum (to compile sjasmplus sources)
- Added automated-testing scripts, with 50+ tests
- GitHub connected with Cirrus Continuous Integration service
1.10.4 - 09.01.2019
Bytes losterror reworked (and changed to warning)- Error/warning messages are displayed in last pass only (where possible)
- Fixed 64k limit warnigs
- BinIncFile reworked
1.10.3 - 26.11.2018
- Fixed macro issue with commas inside quotes
- Fixed
IFUSEDandIFNUSEDdirectives - Fixed
STRUCTdirective - Added support of register operands for operators
HIGHandLOW
1.10.2 - 09.08.2018
- Fixed bug in
UNDEFINEdirective - Fixed bug in parser line wrapping
1.10.1 - 15.05.2018
- Fixed bug in
OUTPUTdirective (bugfix of flushing buffer) - Implemented
TAPOUT,TAPENDandOUTENDdirectives
1.10.0 - 06.05.2018
- Implemented full featured
SAVETAPandEMPTYTAPdirectives
1.09 - 07.09.2017
-Dcommandline parameter addedINCHOB,INCBINbugfix
1.08 - 23.12.2016
- a lot of compilation warnings were cleaned up
- CMake build method implemented
1.07-rc9 - 11.10.2016
- a few compilation warnings were cleaned up
- documentation was added
1.07-rc8 - 05.05.2016
- new makefile
- compilation errors fixed
- a few compilation warnings were cleaned up
- Added new
SAVETAPpseudo-op. It's support up to 1024kb ZX-Spectrum's RAM - Added new
--nofakescommandline parameter - Another fix of 48k SNA snapshots saving routine
- Added new
UNDEFINEpseudo-op - Added new
IFUSED,IFNUSEDpseudo-ops for labels (suchIFDEFfor defines) - Fixed labels list dump rountine (
--lstlabcommand line parameter)
- Applied bugfix patches for
SAVEHOB,SAVETRDpseudo-ops by Breeze - Fixed memory leak in line parsing routine
- Fixed 48k SNA snapshots saving routine
- Added missing
INFinstruction - Fixed code parser's invalid addressing of temporary labels in macros
- Bugfix patches by Ric Hohne
- Important bugfix of memory leak
- Bugfix of strange crashes at several machines
- Added yet another sample for built-in LUA engine. See end of this file
- Added sources of CosmoCubes demo to the "examples" directory
ALIGNhas new optional parameter- Corrected bug of RAM sizing
- Corrected bug of structures naming
- Corrected important bug in code generation functions of SjASMPlus
- Corrected bug with
SAVEBIN,SAVETRDand possibleSAVESNA - Add Makefile to build under Linux, FreeBSD etc
- `SAVESNA can save 48kb snapshots
- Corrected
DEFINEbug - Corrected bug of incorrect line numbering
SAVESNAworks and with deviceZXSPECTRUM48- Added new device
PENTAGON128 - In
ZXSPECTRUM48device and others attributes has black ink and white paper by default
- Corrected bug with
_ERRORSand_WARNINGSconstants - Added error message, when
SHELLEXECprogram execution failed
- 3-pass design
- Built-in Lua scripting engine
- Changed command line keys
- Documentation converted to HTML
- Added new directives:
DEVICE,SLOT,SHELLEXEC - Added predefined constanst:
_SJASMPLUS=1,_ERRORSand other - Changed output log format
- And many many more
- Corrected bug in
INCTRD - Added version of compiler for DOS
- Corrected some important bugs
- Corrected bug in
LABELSLIST
- Corrected bugs in
STRUCT,ENDS - Applied changes from new version of SjASM 0.39g:
ENDMAPdirectiveDEFMandDMsynonyms forBYTE
- Some bug fixes:
- file size is reset when a new output file is opened
bytes lostwarning fixed And thanks to Konami Man:PHASEandDEPHASEdirectives as synonyms ofTEXTAREAandENDTFPOSdirective.- Expanded
OUTPUTdirective. - The possibility to generate a symbol file.
- WARNING! To enlarge compatibility of the SjASMPlus with other assemblers, the key
-BENABLES(but no disables) possibility writing pseudo-ops from the beginning of line. - Corrected bug with chars which position in ascii table is more than 127
- Corrected bug with
DISP,ENT - Added new pseudo-op
DEFM,DMas synonym ofDB,DEFB,BYTE DEFL(this is new pseudo-op) andLABEL=...can be redefined- Corrected bug with temporary labels in
DUP,REPT - New pseudo-op
DEFARRAYto create array of DEFINEs. Can not be redefined
- Corrected bug with including external files
- Now sjasm.exe has icon.
- To distributive included version for FreeBSD
- Corrected bug, when
ENDcould not be a label - Added new key
-B
- Corrected small bug of directive processing
- Added support of {..} as in Alasm (see below)
- Added possibility to write commands ADC,ADD,AND,BIT and etc throught comma: XOR B,C,A ;---> XOR B / XOR C / XOR A
- Second very important fix of procedure of line reading
- Corrected bug in
INCTRD - Added possibility to write commands LD,INC,DEC,CALL,DJNZ,JP,JR throught comma (in test mode!): LD A,D,A,0,HL,100h or INC A,B,C,D,A,A etc
- Very important fix of procedure of line reading
- Now you can write directives from the beginning of line
- Added directive
.<expression> <code>, where<expression>- count of repeats,<code>- code, which need to repeat - Corrected small bug of
IFandIFN - Added directive
LABELSLIST(by Kurles^HS^CPU) - Added directive
DISPLAYanalogue of Alasm's directive (by Kurles^HS^CPU) - Added directives
EMPTYTRD,SAVETRD,INCHOB,INCTRD - Remade procedure of lines reading (added support of end lines codes of Mac and Unix)
- Added support of resting of
DUP,REPTand synonym ofEDUP--ENDR - Corrected error with macros
- Speeded up! 250000 lines of code compiles with 1.15 sec instead of 2.5 sec! And SjASMPlus will no more eat so much RAM.
- Added support of encodings (WIN/DOS) --- directive
ENCODINGand key-d(by Kurles^HS^CPU) - Added directive
IFNan opposition ofIF
- Added counter of compiled lines
- Added directive
SAVEHOB, which saves block of memory in Hobeta format (by Kurles^HS^CPU) - Corrected bug with using <..> in directives
INCLUDE,INCBINand etc (by Kurles^HS^CPU)
- New synonym of
INCBIN--INSERT - Added support of ZX-Spectrum memory. Use key
-mfor this. - With key
-menabling new directivesPAGE,SAVESNA,SAVEBINand extra parameter ofORG <address>,<pagenumber> - Added directives
DISP,ENT(PHASE,UNPHASE,DEPHASE) - Speeded up. 250000 lines of code compiles with 2.5 sec instead of 7 sec!
- Max length of line now is 1024 bytes
- Added synonym of EX AF,AF' -- EXA
- Corrected small bug with DEFINEs
- Small speed up
- Added support of single quotes for
BYTE,DB,DC,DZ, in which don't working slash (example \n will be \n, but not carry to new line) - Commented all changes in sources
- -Q & -L was returned (yet in test mode)
- Added key
-Pwhich enabled reverse compiling of POP (i.e POP AF,BC will be compiled to pop bc / pop af) - Support code throught colon (LD A,C:INC A:PUSH AF:IFDEF FX:LD A,D:ENDIF...)
- New synonym of
REPT--DUP - Synonyms of IXH,IXL and IYH,IYL: XH,XL,LX,HX,YH,YL,HY,LY
- Corrected small bugs (with SIZE and other)
- Shortened listing file was more friendly
- Display time of compilation
- Maximum, minimum, and, or, mod, xor, not, shl, shr, low and high operators added.
- Logical operations result in -1 or 0 instead of 1 or 0. Of course, -1 for true and 0 for false ;)
- Fixed the "ifdef <illegal identifier>" bug
#Can be used now to indicate a hexadecimal value- Local "number" labels should really work now
- Multiple error messages per source line possible
- Things like ld a,(4)+1 work again (=> ld a,5). Somehow I broke this in v0.3
- Filenames don't need surrounding quotes anymore
- Macro's can be nested once again
- Better define-handling
Textareadetects forward references- Include within include searches relative to that include
- Unlocked some directives (assert, output)
#Can be used in labels- No space needed between label and
=in statements likelabel=value - The
exportdirective now exportslabel: EQU valueinstead oflabel = value - Labelnames starting with a register name (like HL_kip) shouldn't confuse SjASM anymore
- RLC, RRC, RL, RR, SLA, SRA, SLL (SLI), RES and SET undocumented instructions added
ex af,afandex afare possible now- Added defb, defw and defs
- Locallabels now also work correctly when used in macros
- Added
//and limited/* */comments - SjASM now checks the label values between passes
>>>Operator added- Sources included
>>>And>>operators now work the way they should (I think)- Removed the data/text/pool-bug. (Together with the data/text/pool directives. ~8)
- Added
endmoduleandendmodto end a module STRUCTdirectiveREPT,DWORD,DD,DEFDdirectives- More freedom with character constants; in some cases it's possible to use double quotes...
- It's now possible to specify include paths at the command line
- Angle brackets are used now to include commas in macroarguments. So check your macro's
- Fixed a structure initialization bug
- It's not possible to use CALLs or jumps without arguments anymore
DZandABYTEZdirectives to define null terminated strings- SjASM now checks for lines that are too long
- Added "16 bit" LD, LDI and LDD instructions
- PUSH and POP accept a list of registers
- Added "16 bit" SUB instruction
- Unreferenced labels are indicated with an 'X' in the labellisting
- Unknown escapecodes in strings result in just one error (instead of more)
- Labelnameparts now have a maximum of 70 characters
- Improved IX and IY offset checking
- SjASM v0.3x assumes Z80-mode as there are no other cpus supported
- All calculations are 32 bits