comparison lwasm/pass1.c @ 354:60568b123281

Added os9 opcodes and ERROR
author lost@starbug
date Tue, 30 Mar 2010 23:10:01 -0600
parents 4dba8c7e242c
children 7d91ab7ac7d6
comparison
equal deleted inserted replaced
353:faa97115952e 354:60568b123281
81 cl = lw_alloc(sizeof(line_t)); 81 cl = lw_alloc(sizeof(line_t));
82 memset(cl, 0, sizeof(line_t)); 82 memset(cl, 0, sizeof(line_t));
83 cl -> prev = as -> line_tail; 83 cl -> prev = as -> line_tail;
84 cl -> insn = -1; 84 cl -> insn = -1;
85 cl -> as = as; 85 cl -> as = as;
86 cl -> inmod = as -> inmod;
87 cl -> csect = as -> csect;
86 if (!as -> line_tail) 88 if (!as -> line_tail)
87 { 89 {
88 as -> line_head = cl; 90 as -> line_head = cl;
89 cl -> addr = lw_expr_build(lw_expr_type_int, 0); 91 cl -> addr = lw_expr_build(lw_expr_type_int, 0);
90 } 92 }