# HG changeset patch # User lost # Date 1231049782 0 # Node ID b33eca135258213818d83ca78d58407eb536ca23 # Parent 4bb7b723e5b795b564c93c72736521931bd8e44a Added second pass code generation diff -r 4bb7b723e5b7 -r b33eca135258 src/pass2.c --- a/src/pass2.c Sun Jan 04 06:13:13 2009 +0000 +++ b/src/pass2.c Sun Jan 04 06:16:22 2009 +0000 @@ -1,6 +1,6 @@ /* pass2.c -Copyright © 2008 William Astle +Copyright © 2009 William Astle This file is part of LWASM. @@ -26,13 +26,16 @@ #include "config.h" #endif -#include -#include -#include -#include - #include "lwasm.h" void lwasm_pass2(asmstate_t *as) { + lwasm_line_t *l; + + as -> passnum = 2; + as -> addr = 0; + + // iterate over all the lines and re-parse them + for (l = as -> lineshead; l; l = l -> next) + lwasm_parse_line(as, l); }