From ec5d89a8bd9e22e64c75f4ffff074e2b3e989689 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sat, 24 Oct 2020 22:37:36 -0300 Subject: [PATCH] Remove unneeded macro --- assembler.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assembler.c b/assembler.c index d4ed50b..94093af 100644 --- a/assembler.c +++ b/assembler.c @@ -12,7 +12,6 @@ #define ADD_STR_LEN 7 #define INST_SIZE 17 #define C_TOKEN_SIZE 4 -#define VARS_START_INDEX 16 #define CMP_SIZE 8 #define CMP_TABLE_SIZE 27 @@ -323,7 +322,7 @@ void replacevar(struct line* ln, int val) { } void stripvars(struct symbol** vars, int* varscount, struct symbol** labels, int* labelscount, struct line** lns, int lnscount) { - int varsramind = VARS_START_INDEX; + int varsramind = BOT_VAR; for(int i = 0; i < lnscount; i++) { if(lns[i]->ln[0] == '@') { char* afterat = lns[i]->ln+sizeof(char);