summaryrefslogtreecommitdiff
path: root/sdas/asz80/tz80l.asm
blob: aec2ba2fed6aabffc1ae6564416e443b47081821 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
	.sbttl	Assembler Link Tests

	.module	tz80l

	; This file and TCONST.ASM should be assembled and linked.
	;
	; ASZ80 -XGOL TZ80L
	; ASZ80 -XGOL TCONST
	;
	; ASLINK -C
	; -XMS
	; TZ80L
	; TCONST
	; -E
	;
	; The following tests verify the correct processing of
	; external references for the branches.
	;
	; *L signifies an error will be reported at link time.

	; branch test must be first

	.area	TEST	(ABS,OVR)

	.blkb	0x7E		;bra1:
	jr	C,bra1		;   38 00  [38 80]
	.blkb	0x7F		;bra2:
	jr	C,bra2		;*L 38 00  [38 7F]
	jr	C,bra3		;   38 00  [38 7F]
	.blkb	0x7F
	.blkb	0x00		;bra3:
	jr	C,bra4		;*L 38 00  [38 [80]
	.blkb	0x80
	.blkb	0x00		;bra4:

	.blkb	0x7E		;bra5:
	jr	C,bra5		;   38 00  [38 80]
	.blkb	0x7F		;bra6:
	jr	C,bra6		;*L 38 00  [38 7F]
	jr	C,bra7		;   38 00  [38 7F]
	.blkb	0x7F
	.blkb	0x00		;bra7:
	jr	C,bra8		;*L 38 00  [38 [80]
	.blkb	0x80
	.blkb	0x00		;bra8: