forked from informedcitizenry/6502.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
177 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace Sixty502DotNet.Tests | ||
{ | ||
[TestClass] | ||
public class Z80AssemblerTests | ||
{ | ||
[TestMethod] | ||
public void Test() | ||
{ | ||
var sut = new Z80Assembler(); | ||
var input = ";\r\n;\r\nCALL MAIN \r\n HALT \r\nMAIN: \r\n LD a,1 \r\n LD b,2 \r\n ADD a,b \r\n RET \r\n"; | ||
var bytes = sut.Assemble(input); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
using Sixty502DotNet.Runtime; | ||
|
||
namespace Sixty502DotNet; | ||
|
||
public class AssemblyData | ||
{ | ||
public byte[] ProgramBinary { get; } | ||
public IEnumerable<DebugEntry> DebugInfo { get; } | ||
|
||
public AssemblyData(byte[] programBinary, IEnumerable<DebugEntry> debugInfo) | ||
{ | ||
ProgramBinary = programBinary; | ||
DebugInfo = debugInfo; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Sixty502DotNet.Runtime; | ||
|
||
public record DebugEntry(int Line, int ProgramCounter, string LineText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters