Skip to content

Commit c164692

Browse files
authored
Merge pull request #391 from AILight/develop
Release 1.0.26
2 parents 77afe6e + 78c1264 commit c164692

9 files changed

Lines changed: 73 additions & 5 deletions

File tree

AILZ80ASM.Test/AILZ80ASM.Test.csproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,21 @@
526526
<None Update="Test\Issues\376\Test2.EQU">
527527
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
528528
</None>
529+
<None Update="Test\Issues\388\Test.BIN">
530+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
531+
</None>
532+
<None Update="Test\Issues\388\Test.LST">
533+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
534+
</None>
535+
<None Update="Test\Issues\388\Test.Z80">
536+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
537+
</None>
538+
<None Update="Test\Issues\388\Test1.EQU">
539+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
540+
</None>
541+
<None Update="Test\Issues\388\Test2.EQU">
542+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
543+
</None>
529544
<None Update="Test\TestCS_ALIGN\Test.BIN">
530545
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
531546
</None>
@@ -2189,6 +2204,7 @@
21892204

21902205
<ItemGroup>
21912206
<Folder Include="Test\AIEncode\" />
2207+
<Folder Include="Test\Issues\388\" />
21922208
<Folder Include="Test\TestPP_ConditionalEnhanced\" />
21932209
</ItemGroup>
21942210

6 Bytes
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
 ;*** AILZ80ASM *** Z-80 Assembler, version 1.0.23.0, LST:Full:4
2+
000000 8000 ORG $8000
3+
4+
include "Test1.EQU"
5+
6+
[VRAM]
7+
8+
0000 ADRS equ 0000
9+
0080 WIDTH equ 128
10+
00D4 HEIGHT equ 212
11+
6A00 SIZE equ 27136
12+
[EOF:Test1.EQU:UTF_8]
13+
include "Test2.EQU"
14+
15+
[VRAM]
16+
17+
ADRS equ 0000 ; グラフィックアドレス
18+
WIDTH equ 128 ; 幅
19+
HEIGHT equ 212 ; 高さ
20+
SIZE equ WIDTH * HEIGHT ; サイズ
21+
[EOF:Test2.EQU:UTF_8]
22+
23+
000000 8000 210000 10 LD HL, VRAM.ADRS
24+
000003 8003 01006A 10 LD BC, VRAM.SIZE
25+
[EOF:Test.Z80:UTF_8]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
 ORG $8000
2+
3+
include "Test1.EQU"
4+
include "Test2.EQU"
5+
6+
LD HL, VRAM.ADRS
7+
LD BC, VRAM.SIZE
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+

2+
[VRAM]
3+
4+
ADRS equ 0000
5+
WIDTH equ 128
6+
HEIGHT equ 212
7+
SIZE equ 27136
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+

2+
[VRAM]
3+
4+
ADRS equ 0000 ; グラフィックアドレス
5+
WIDTH equ 128 ; 幅
6+
HEIGHT equ 212 ; 高さ
7+
SIZE equ WIDTH * HEIGHT ; サイズ

AILZ80ASM.Test/Z80ZZIssueTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,12 @@ public void Issue_370()
425425
public void Issue_376()
426426
{
427427
Lib.Assemble_AreSame(Path.Combine("Issues", "376"));
428+
}
429+
430+
[TestMethod]
431+
public void Issue_388()
432+
{
433+
Lib.Assemble_AreSame(Path.Combine("Issues", "388"));
428434
}
429435
}
430436
}

AILZ80ASM/AILZ80ASM.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFramework>net8.0</TargetFramework>
6-
<Version>1.0.25</Version>
7-
<AssemblyVersion>1.0.25.0</AssemblyVersion>
8-
<FileVersion>1.0.25.0</FileVersion>
6+
<Version>1.0.26</Version>
7+
<AssemblyVersion>1.0.26.0</AssemblyVersion>
8+
<FileVersion>1.0.26.0</FileVersion>
99
<Authors>Mitsuhito Ishino</Authors>
1010
<Company>AILight</Company>
1111
<Description>Z80 Assembler 'AILZ80ASM'</Description>

AILZ80ASM/Assembler/AsmLoad.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,12 @@ public void AddLabel(Label label)
385385
// equの場合は値が一致しているかを確認する
386386
if (label.LabelType == Label.LabelTypeEnum.Equ)
387387
{
388-
if (AIMath.TryParse(label.ValueString, out var labelValue))
388+
if (AIMath.TryParse(label.ValueString, this, out var labelValue))
389389
{
390390
var sameLables = this.Scope.Labels.Where(m => string.Compare(m.LabelFullName, label.LabelFullName, true) == 0);
391391
foreach (var sameLabel in sameLables)
392392
{
393-
if (AIMath.TryParse(sameLabel.ValueString, out var sameLabelValue))
393+
if (AIMath.TryParse(sameLabel.ValueString, this, out var sameLabelValue))
394394
{
395395
if (labelValue.Equals(sameLabelValue))
396396
{

0 commit comments

Comments
 (0)