Skip to content

Commit

Permalink
fixed some bugs, command line tool
Browse files Browse the repository at this point in the history
  • Loading branch information
AdinAck committed Oct 23, 2022
1 parent 29fda0c commit de7a31a
Show file tree
Hide file tree
Showing 17 changed files with 617 additions and 50 deletions.
140 changes: 123 additions & 17 deletions LEGv8-Simulator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
objects = {

/* Begin PBXBuildFile section */
403941EC2904A55E005403A7 /* SwiftyMonaco in Frameworks */ = {isa = PBXBuildFile; productRef = 403941EB2904A55E005403A7 /* SwiftyMonaco */; };
403941F42904A63C005403A7 /* LEGv8_Simulator_CLI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403941F32904A63C005403A7 /* LEGv8_Simulator_CLI.swift */; };
403941F82904A787005403A7 /* Interpreter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403D871728E125AE002E5E4A /* Interpreter.swift */; };
403941F92904A845005403A7 /* Lexer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 404364AF28E0DDE70052F25D /* Lexer.swift */; };
403941FA2904A849005403A7 /* CPUModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 404364A928E0DD620052F25D /* CPUModel.swift */; };
403941FF2904BD1A005403A7 /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = 403941FE2904BD1A005403A7 /* ArgumentParser */; };
403D871828E125AE002E5E4A /* Interpreter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403D871728E125AE002E5E4A /* Interpreter.swift */; };
403D871A28E1EF38002E5E4A /* ConsoleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403D871928E1EF38002E5E4A /* ConsoleView.swift */; };
403D871C28E214BD002E5E4A /* ConsoleRowView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 403D871B28E214BD002E5E4A /* ConsoleRowView.swift */; };
Expand All @@ -26,11 +32,24 @@
40D605CD28E74A2F00654D3C /* FlagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40D605CC28E74A2F00654D3C /* FlagView.swift */; };
40D605CF28E7520500654D3C /* RegisterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40D605CE28E7520500654D3C /* RegisterView.swift */; };
40D605D128E7523500654D3C /* MemoryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40D605D028E7523500654D3C /* MemoryView.swift */; };
40E9FF5B28F8C5DB007DF79D /* SwiftyMonaco in Frameworks */ = {isa = PBXBuildFile; productRef = 40E9FF5A28F8C5DB007DF79D /* SwiftyMonaco */; };
40FC5AF628E27F6000532886 /* SwiftyMonaco in Frameworks */ = {isa = PBXBuildFile; productRef = 40FC5AF528E27F6000532886 /* SwiftyMonaco */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
403941EF2904A63C005403A7 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
403941F12904A63C005403A7 /* Legv8-Simulator-CLI */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "Legv8-Simulator-CLI"; sourceTree = BUILT_PRODUCTS_DIR; };
403941F32904A63C005403A7 /* LEGv8_Simulator_CLI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LEGv8_Simulator_CLI.swift; sourceTree = "<group>"; };
403941FB2904A8D1005403A7 /* Legv8-Simulator-CLI.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Legv8-Simulator-CLI.entitlements"; sourceTree = "<group>"; };
403D871728E125AE002E5E4A /* Interpreter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Interpreter.swift; sourceTree = "<group>"; };
403D871928E1EF38002E5E4A /* ConsoleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsoleView.swift; sourceTree = "<group>"; };
403D871B28E214BD002E5E4A /* ConsoleRowView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConsoleRowView.swift; sourceTree = "<group>"; };
Expand All @@ -52,28 +71,45 @@
40D605CC28E74A2F00654D3C /* FlagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlagView.swift; sourceTree = "<group>"; };
40D605CE28E7520500654D3C /* RegisterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RegisterView.swift; sourceTree = "<group>"; };
40D605D028E7523500654D3C /* MemoryView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MemoryView.swift; sourceTree = "<group>"; };
40FC14DC28E4E433006A47C6 /* SwiftyMonaco */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftyMonaco; path = ../SwiftyMonaco; sourceTree = "<group>"; };
40E9FF5D2904A537007DF79D /* SwiftyMonaco */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = SwiftyMonaco; path = ../SwiftyMonaco; sourceTree = "<group>"; };
40FC5AF928E28CCA00532886 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
403941EE2904A63C005403A7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
403941FF2904BD1A005403A7 /* ArgumentParser in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
4043648D28E0C4020052F25D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
40FC5AF628E27F6000532886 /* SwiftyMonaco in Frameworks */,
40E9FF5B28F8C5DB007DF79D /* SwiftyMonaco in Frameworks */,
403941EC2904A55E005403A7 /* SwiftyMonaco in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
403941F22904A63C005403A7 /* Legv8-Simulator-CLI */ = {
isa = PBXGroup;
children = (
403941FB2904A8D1005403A7 /* Legv8-Simulator-CLI.entitlements */,
403941F32904A63C005403A7 /* LEGv8_Simulator_CLI.swift */,
);
path = "Legv8-Simulator-CLI";
sourceTree = "<group>";
};
4043648728E0C4020052F25D = {
isa = PBXGroup;
children = (
40FC14DB28E4E433006A47C6 /* Packages */,
4043649228E0C4020052F25D /* LEGv8-Simulator */,
403941F22904A63C005403A7 /* Legv8-Simulator-CLI */,
4043649128E0C4020052F25D /* Products */,
40FC5AF428E27F6000532886 /* Frameworks */,
);
Expand All @@ -83,6 +119,7 @@
isa = PBXGroup;
children = (
4043649028E0C4020052F25D /* LEGv8-Simulator.app */,
403941F12904A63C005403A7 /* Legv8-Simulator-CLI */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -166,7 +203,7 @@
40FC14DB28E4E433006A47C6 /* Packages */ = {
isa = PBXGroup;
children = (
40FC14DC28E4E433006A47C6 /* SwiftyMonaco */,
40E9FF5D2904A537007DF79D /* SwiftyMonaco */,
);
name = Packages;
sourceTree = "<group>";
Expand All @@ -181,6 +218,26 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
403941F02904A63C005403A7 /* Legv8-Simulator-CLI */ = {
isa = PBXNativeTarget;
buildConfigurationList = 403941F52904A63C005403A7 /* Build configuration list for PBXNativeTarget "Legv8-Simulator-CLI" */;
buildPhases = (
403941ED2904A63C005403A7 /* Sources */,
403941EE2904A63C005403A7 /* Frameworks */,
403941EF2904A63C005403A7 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = "Legv8-Simulator-CLI";
packageProductDependencies = (
403941FE2904BD1A005403A7 /* ArgumentParser */,
);
productName = "Legv8-Simulator-CLI";
productReference = 403941F12904A63C005403A7 /* Legv8-Simulator-CLI */;
productType = "com.apple.product-type.tool";
};
4043648F28E0C4020052F25D /* LEGv8-Simulator */ = {
isa = PBXNativeTarget;
buildConfigurationList = 4043649F28E0C4030052F25D /* Build configuration list for PBXNativeTarget "LEGv8-Simulator" */;
Expand All @@ -195,8 +252,7 @@
);
name = "LEGv8-Simulator";
packageProductDependencies = (
40FC5AF528E27F6000532886 /* SwiftyMonaco */,
40E9FF5A28F8C5DB007DF79D /* SwiftyMonaco */,
403941EB2904A55E005403A7 /* SwiftyMonaco */,
);
productName = "LEGv8-Simulator";
productReference = 4043649028E0C4020052F25D /* LEGv8-Simulator.app */;
Expand All @@ -212,6 +268,9 @@
LastSwiftUpdateCheck = 1400;
LastUpgradeCheck = 1400;
TargetAttributes = {
403941F02904A63C005403A7 = {
CreatedOnToolsVersion = 14.0.1;
};
4043648F28E0C4020052F25D = {
CreatedOnToolsVersion = 14.0;
};
Expand All @@ -227,13 +286,14 @@
);
mainGroup = 4043648728E0C4020052F25D;
packageReferences = (
40E9FF5928F8C5DB007DF79D /* XCRemoteSwiftPackageReference "SwiftyMonaco" */,
403941FD2904BD1A005403A7 /* XCRemoteSwiftPackageReference "swift-argument-parser" */,
);
productRefGroup = 4043649128E0C4020052F25D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
4043648F28E0C4020052F25D /* LEGv8-Simulator */,
403941F02904A63C005403A7 /* Legv8-Simulator-CLI */,
);
};
/* End PBXProject section */
Expand All @@ -252,6 +312,17 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
403941ED2904A63C005403A7 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
403941F82904A787005403A7 /* Interpreter.swift in Sources */,
403941F92904A845005403A7 /* Lexer.swift in Sources */,
403941FA2904A849005403A7 /* CPUModel.swift in Sources */,
403941F42904A63C005403A7 /* LEGv8_Simulator_CLI.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
4043648C28E0C4020052F25D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -278,6 +349,32 @@
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
403941F62904A63C005403A7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "Legv8-Simulator-CLI/Legv8-Simulator-CLI.entitlements";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 84WPVNZ8GM;
ENABLE_HARDENED_RUNTIME = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
403941F72904A63C005403A7 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = "Legv8-Simulator-CLI/Legv8-Simulator-CLI.entitlements";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 84WPVNZ8GM;
ENABLE_HARDENED_RUNTIME = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
4043649D28E0C4030052F25D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -458,6 +555,15 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
403941F52904A63C005403A7 /* Build configuration list for PBXNativeTarget "Legv8-Simulator-CLI" */ = {
isa = XCConfigurationList;
buildConfigurations = (
403941F62904A63C005403A7 /* Debug */,
403941F72904A63C005403A7 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
4043648B28E0C4020052F25D /* Build configuration list for PBXProject "LEGv8-Simulator" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand All @@ -479,25 +585,25 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
40E9FF5928F8C5DB007DF79D /* XCRemoteSwiftPackageReference "SwiftyMonaco" */ = {
403941FD2904BD1A005403A7 /* XCRemoteSwiftPackageReference "swift-argument-parser" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/ICToolkit/SwiftyMonaco";
repositoryURL = "https://github.com/apple/swift-argument-parser.git";
requirement = {
branch = main;
kind = branch;
kind = upToNextMajorVersion;
minimumVersion = 1.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
40E9FF5A28F8C5DB007DF79D /* SwiftyMonaco */ = {
403941EB2904A55E005403A7 /* SwiftyMonaco */ = {
isa = XCSwiftPackageProductDependency;
package = 40E9FF5928F8C5DB007DF79D /* XCRemoteSwiftPackageReference "SwiftyMonaco" */;
productName = SwiftyMonaco;
};
40FC5AF528E27F6000532886 /* SwiftyMonaco */ = {
403941FE2904BD1A005403A7 /* ArgumentParser */ = {
isa = XCSwiftPackageProductDependency;
productName = SwiftyMonaco;
package = 403941FD2904BD1A005403A7 /* XCRemoteSwiftPackageReference "swift-argument-parser" */;
productName = ArgumentParser;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"pins" : [
{
"identity" : "swiftymonaco",
"kind" : "remoteSourceControl",
"location" : "https://github.com/ICToolkit/SwiftyMonaco",
"state" : {
"branch" : "main",
"revision" : "715dd8575c33602d3e5041fd2edc1bbe23e12653"
"object": {
"pins": [
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "9f39744e025c7d377987f30b03770805dcb0bcd1",
"version": "1.1.4"
}
}
}
],
"version" : 2
]
},
"version": 1
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array/>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4043648F28E0C4020052F25D"
BuildableName = "LEGv8-Simulator.app"
BlueprintName = "LEGv8-Simulator"
ReferencedContainer = "container:LEGv8-Simulator.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4043648F28E0C4020052F25D"
BuildableName = "LEGv8-Simulator.app"
BlueprintName = "LEGv8-Simulator"
ReferencedContainer = "container:LEGv8-Simulator.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4043648F28E0C4020052F25D"
BuildableName = "LEGv8-Simulator.app"
BlueprintName = "LEGv8-Simulator"
ReferencedContainer = "container:LEGv8-Simulator.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Loading

0 comments on commit de7a31a

Please sign in to comment.