URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
Subversion Repositories zipcpu
Compare Revisions
- This comparison shows the changes necessary to convert path
/zipcpu
- from Rev 12 to Rev 11
- ↔ Reverse comparison
Rev 12 → Rev 11
/trunk/bench/asm/helloworld.S
File deleted
/trunk/rtl/core/cpuops.v
67,9 → 67,9
4'ha: { c, o_c } <= i_a + i_b; // Add |
4'hb: o_c <= i_a | i_b; // Or |
4'hc: o_c <= i_a ^ i_b; // Xor |
4'hd: { c, o_c } <= (|i_b[31:5])? 33'h00 : {1'b0, i_a } << i_b[4:0]; // LSL |
4'he: { c, o_c } <= (|i_b[31:5])? {(33){i_a[31]}}:{ i_a[31],i_a}>> (i_b[4:0]);// ASR |
4'hf: { c, o_c } <= (|i_b[31:5])? 33'h00 : { 1'b0, i_a } >> (i_b[4:0]);// LSR |
4'hd: { c, o_c } <= {1'b0, i_a } << i_b[4:0]; // LSL |
4'he: { c, o_c } <= { i_a[31],i_a}>> (i_b[4:0]);// ASR |
4'hf: { c, o_c } <= { 1'b0, i_a } >> (i_b[4:0]);// LSR |
default: o_c <= i_b; // MOV, LDI |
endcase |
end |
/trunk/sw/zasm/zparser.cpp
233,7 → 233,7
} |
|
if ((!*opc)&&(strncasecmp("DAT",point,3)==0)) { |
ins = imm; |
ins = strtoul(opb, NULL, 0); |
valid = true; |
} else if (strcasecmp("CMP",opc)==0) { |
if (rb != ZIP_Rnone) |
/trunk/sw/zasm/zdump.cpp
44,7 → 44,7
ZIPI ibuf[NZIP]; |
FILE *fp; |
int nr; |
int addr=0x08000; |
int lineno=0; |
|
fp = fopen(fn, "r"); |
if (!fp) |
54,7 → 54,7
for(int i=0; i<nr; i++) { |
zipi_to_string(ibuf[i], ln); |
// printf("%s\n", ln); |
printf("%08x: (0x%08x) %s\n", addr++, ibuf[i], ln); |
printf("%08x: (0x%08x) %s\n", lineno, ibuf[i], ln); |
} |
} fclose(fp); |
} |