Updated the parser to better handle parameters, sort of and including a string length assembly program to use as a test for the whole assembler.
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ const unsigned char ADDRESSMASK = 0x10; //0001 0000
|
||||
|
||||
int IsRegisterPattern(unsigned char pattern, char* lexeme);
|
||||
void GetParameter(unsigned char instruction, char* text);
|
||||
|
||||
/*
|
||||
void Disassemble(unsigned char image[HIGHMEMORY]) {
|
||||
Image = image;
|
||||
int position = image[0] + image[1];
|
||||
@@ -117,7 +117,7 @@ void Disassemble(unsigned char image[HIGHMEMORY]) {
|
||||
memset(parameter2, '\0', sizeof(char) * 32);
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
int IsRegisterPattern(unsigned char pattern, char* lexeme) {
|
||||
if (pattern > 8) {
|
||||
lexeme[0] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user