1
0
mirror of https://github.com/fachat/xa65.git synced 2024-06-22 06:29:28 +00:00

Add a new test for ca65 unnamed labels, handling across files and

listing them across files
This commit is contained in:
fachat 2012-08-01 13:27:01 +02:00
parent c53468dc87
commit e50236d62b
5 changed files with 62 additions and 2 deletions

View File

@ -7,7 +7,7 @@ XA=../../xa
CA65=ca65
LD65=ld65
tests: linebreak include1 listblocks listca65 clean
tests: linebreak include1 listblocks listca65 listca65_2 clean
include1: include1.a65
@ -24,10 +24,16 @@ listblocks: listblocks.a65
listca65: listca65.a65
${XA} -XCA65 -P- -Fhtml listca65.a65 > a.out
#${CA65} $<; ${LD65} -t none -o unnamed2.ca65 unnamed2.o; rm unnamed2.o
#${CA65} $<; ${LD65} -t none -o listca65.ca65 listca65.o; rm listca65.o
cmp listca65.html a.out
cmp listca65.ca65 a.o65
listca65_2: listca65_2.a65
${XA} -XCA65 -P- -Fhtml listca65_2.a65 > a.out
${CA65} $<; ${LD65} -t none -o listca65_2.ca65 listca65_2.o; rm listca65_2.o
cmp listca65_2.html a.out
cmp listca65_2.ca65 a.o65
clean:
rm -f a.err a.o65 a.out

View File

@ -0,0 +1,15 @@
; tests the html listing feature with blocks that
; contain the same label names, but in different scopes
.org $1000
: lda #$00
.include "listca65_2b.a65"
label2: iny
beq label2
jmp :-

Binary file not shown.

View File

@ -0,0 +1,32 @@
<html><head><title>(null)</title></head><body><pre>
listca65_2.a65
2 A:1000 ; tests the html listing feature with blocks that
3 A:1000 ; contain the same label names, but in different scopes
5 A:1000 *= $1000
7 A:1000 a9 00 <a name="0U0"> </a>: lda #$00
9 A:1002 .include "listca65_2b.a65"
listca65_2b.a65
2 A:1002 ; to be included in listca65_2.a65
3 A:1002 ; to check HTML linkage of unnamed labels across files
5 A:1002 c8 <a name="0U1"> </a>: iny
6 A:1003 d0 fd bne <a href="#0U1">:-</a>
listca65_2.a65
11 A:1005 <a name="0_label2"> </a>label2
11 A:1005 c8 iny
12 A:1006 f0 fd beq <a href="#0_label2">label2</a>
14 A:1008 4c 02 10 jmp <a href="#0U1">:-</a>
</pre></body></html>

View File

@ -0,0 +1,7 @@
; to be included in listca65_2.a65
; to check HTML linkage of unnamed labels across files
: iny
bne :-