Mercurial > hg-old > index.cgi
comparison src/pass1.c @ 27:f736579569b4
Added handlers for inherent and register to register instructions
author | lost |
---|---|
date | Fri, 02 Jan 2009 02:56:04 +0000 |
parents | d2e86babd958 |
children | c0ff62e5ad39 |
comparison
equal
deleted
inserted
replaced
26:d2e86babd958 | 27:f736579569b4 |
---|---|
147 } | 147 } |
148 | 148 |
149 void lwasm_pass1(asmstate_t *as) | 149 void lwasm_pass1(asmstate_t *as) |
150 { | 150 { |
151 as -> passnum = 1; | 151 as -> passnum = 1; |
152 as -> addr = 0; | |
152 | 153 |
153 if (lwasm_read_file(as, as -> infile) < 0) | 154 if (lwasm_read_file(as, as -> infile) < 0) |
154 { | 155 { |
155 fprintf(stderr, "Error reading input file '%s'", as -> infile); | 156 fprintf(stderr, "Error reading input file '%s'", as -> infile); |
156 perror(""); | 157 perror(""); |