basm 0.5.0

z80 assembler relying on cpclib-asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; limits and protected are deactivated inside crunch section as we consider they have to be applied to the crunched version
; however, it is possible to duplicate it in the crunch section (and its life corresponds to the crosssection one only)


	org 0x100

	limit 0x1e0 ; limit not taken into account in the crunched section

	LZAPU
		assert $ == 0x100
		limit 0x1e0 ; limit taken into account in the crunched section
		defs 0x100 ; write over the limit => must fail
		assert $ == 0x200
	LZCLOSE