Skip to content

Commit

Permalink
Add new assembler constants
Browse files Browse the repository at this point in the history
  • Loading branch information
TollyH committed Jun 1, 2024
1 parent d3316c6 commit 689c2a8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const registers: { [name: string]: string } = {
"rg6": "General 6",
"rg7": "General 7",
"rg8": "General 8",
"rg9": "General 9"
"rg9": "General 9",
};

const assemblerConstants: string[] = [
Expand All @@ -267,14 +267,24 @@ const assemblerConstants: string[] = [
"V1_CALL_STACK",
"IMPORT_DEPTH",
"CURRENT_ADDRESS",
"FULL_BASE_OPCODES",
"OBSOLETE_DIRECTIVES",
"ESCAPE_SEQUENCES"
"ESCAPE_SEQUENCES",
"FILE_PATH_MACROS",
"EXTENSION_SET_SIGNED_AVAIL",
"EXTENSION_SET_FLOATING_POINT_AVAIL",
"EXTENSION_SET_EXTENDED_BASE_AVAIL",
"EXTENSION_SET_EXTERNAL_ASM_AVAIL",
"EXTENSION_SET_HEAP_ALLOCATE_AVAIL",
"EXTENSION_SET_FILE_SYSTEM_AVAIL",
"EXTENSION_SET_TERMINAL_AVAIL",
"DISPLACEMENT_AVAIL",
];

const predefinedMacros: string[] = [
"FILE_PATH",
"FILE_NAME",
"FOLDER_PATH"
"FOLDER_PATH",
];

function generateMnemonicDescription(mnemonicName: string): vscode.MarkdownString {
Expand Down

0 comments on commit 689c2a8

Please sign in to comment.