Added warning about array...

This commit is contained in:
xolatile 2024-07-08 15:41:33 -04:00
parent 8b0ed7579d
commit 5e6d87c268
2 changed files with 11 additions and 2 deletions

View File

@ -290,14 +290,21 @@ static void build_move (size_index size,
print ((to == MEM) && (from == IMM), size, source);
}
next token_count;
byte * token_array;
next token_count = 0;
byte * token_array = NULL;
int error_empty_array = 0;
void assemble (next count,
next * array) {
/* */
next index;
if ((count == 0) || (array == NULL)) {
error_empty_array = 1;
return;
}
for (index = 0; index < count; ++index) {
if ((array [index] >= REGULAR_BEGIN)
&& (array [index] <= REGULAR_END)) {

View File

@ -65,6 +65,8 @@ typedef enum {
extern next token_count;
extern byte * token_array;
extern int error_empty_array;
extern void assemble (next count, next * array);
#define ASSEMBLER_H