+
{{ 'PAGES.INDEX.MACHINE' | translate }}
+
+
+
+
+
+
+
+
+
-
{{ 'PAGES.INDEX.CONFIG' | translate }}
-
-
-
+
{{ 'PAGES.INDEX.IDE' | translate }}
+
+
+
+
+
+
-
- {{ 'PAGES.INDEX.DEBUG' | translate }}
+ {{ 'PAGES.INDEX.UTILS' | translate }}
+ [ngTemplateOutletContext]="{item:PRIVATE_AUTH_ROUTES.CALCULATOR}">
+ [ngTemplateOutletContext]="{item:PRIVATE_AUTH_ROUTES.DOCUMENTATION}">
+
+
+
+
+ {{ 'PAGES.INDEX.CONFIG' | translate }}
+
+ [ngTemplateOutletContext]="{item:PRIVATE_AUTH_ROUTES.CONFIG}">
-
+
-
-
-
diff --git a/src/app/views/debug/debug-view.html b/src/app/views/debug/debug-view.html
index d12bed9..80faa8a 100644
--- a/src/app/views/debug/debug-view.html
+++ b/src/app/views/debug/debug-view.html
@@ -196,16 +196,32 @@
{{'DEBUG' | translate}} Code
{{ 'ADDRESS' | translate }} |
+ {{ 'CODE' | translate }} |
{{ 'TEXT' | translate }} |
{{ 'INSTRUCTION' | translate }} |
- {{ 'CODE' | translate }} |
-
+
{{item.address}} |
+ {{item.code}} |
{{item.text}} |
{{item.instruction}} |
- {{item.code}} |
+
+
+
+
+
+ {{ 'ADDRESS' | translate }} |
+ {{ 'HEX VALUE' | translate }} |
+ {{ 'TEXT' | translate }} |
+ {{ 'DIRECTIVE' | translate }} |
+
+
+
+ {{item.address}} |
+ {{item.hexValue}} |
+ {{item.text}} |
+ {{item.directive}} |
diff --git a/src/app/views/debug/debug-view.ts b/src/app/views/debug/debug-view.ts
index 00d9d55..c9e47b6 100644
--- a/src/app/views/debug/debug-view.ts
+++ b/src/app/views/debug/debug-view.ts
@@ -11,14 +11,14 @@ import {
TypeMemoryToUpdate,
TypeRegister,
TypeRegisterToUpdate,
- TypeSimulationInitRequest, TypeAddress
+ TypeSimulationInitRequest, TypeAddress, TypeCodeResponse, TypeDirectiveData
} from "../../Types";
import { ElectronService } from "../../__core/services";
@Component({
selector: "app-debug",
templateUrl: "./debug-view.html",
- styleUrls: ["./debug-view.scss"]
+ styleUrls: [ "./debug-view.scss" ]
})
export class DebugView implements OnInit, AfterViewInit {
@@ -56,7 +56,8 @@ export class DebugView implements OnInit, AfterViewInit {
"TRAP #0"
].join("\n");
- public testCodeResponse: TypeInstructionsData[] = [];
+ public testCodeResponse_instructions: TypeInstructionsData[] = [];
+ public testCodeResponse_directives: TypeDirectiveData[] = [];
i = 0;
constructor(private toast: ToastrService,
@@ -67,8 +68,8 @@ export class DebugView implements OnInit, AfterViewInit {
ngOnInit(): void {
this.socketProviderConnect.socketIO.on("CodeResponse", (response) => {
- const code = JSON.parse(response) as TypeInstructionsData[];
- this.testCodeResponse = code.map((v) => {
+ const code = JSON.parse(response) as TypeCodeResponse;
+ this.testCodeResponse_instructions = code.machineInstructions.map((v) => {
return {
address: v.address,
code: v.code,
@@ -76,6 +77,14 @@ export class DebugView implements OnInit, AfterViewInit {
instruction: v.instruction,
};
});
+ this.testCodeResponse_directives = code.machineDirectives.map((v) => {
+ return {
+ address: v.address,
+ hexValue: v.hexValue,
+ text: v.text,
+ directive: v.directive,
+ };
+ });
});
/*
@@ -142,7 +151,7 @@ export class DebugView implements OnInit, AfterViewInit {
pepe.key = Utils.uuidv4();
const value = JSON.stringify({
- items: [documents, pepe]
+ items: [ documents, pepe ]
});
localStorage.setItem("FileSystem", value);
}
@@ -160,11 +169,11 @@ export class DebugView implements OnInit, AfterViewInit {
async updateRegisterServer(typeRegister: TypeRegister, register: string, value: string): Promise
{
try {
- const payload = JSON.stringify([{
+ const payload = JSON.stringify([ {
typeRegister: typeRegister,
register: register,
hexadecimalValue: value
- }] as TypeRegisterToUpdate[]);
+ } ] as TypeRegisterToUpdate[]);
this.socketProviderConnect.emitMessage("UpdateRegisterRequest", payload);
} catch (error) {
console.error(error);
@@ -175,11 +184,11 @@ export class DebugView implements OnInit, AfterViewInit {
async updateMemoryServer(memoryTypeData: TypeData, memoryAddress: TypeAddress, memoryValue: string): Promise {
try {
- const payload = JSON.stringify([{
+ const payload = JSON.stringify([ {
typeData: memoryTypeData,
address: memoryAddress,
value: memoryValue
- }] as TypeMemoryToUpdate[]);
+ } ] as TypeMemoryToUpdate[]);
this.socketProviderConnect.emitMessage("UpdateMemoryRequest", payload);
} catch (error) {
console.error(error);
diff --git a/wiki b/wiki
index 2ee4c9c..90b3dbb 160000
--- a/wiki
+++ b/wiki
@@ -1 +1 @@
-Subproject commit 2ee4c9caafcd71980f6c66a41f13f3c6c5dc8695
+Subproject commit 90b3dbbea47ead49407c9de7287150b6bfef25ab