cleanup schematic, edge triggered cycle start detection, debug output cleanup

This commit is contained in:
ikari
2009-09-11 11:03:00 +02:00
parent 73c3236904
commit e4fc4f257a
7 changed files with 72 additions and 31 deletions

View File

@@ -187,10 +187,5 @@ uint32_t calc_sram_crc(uint32_t size) {
uart_putc(hex[(crc>>24)&0xf]);
uart_putc(hex[(crc>>20)&0xf]);
uart_putc(hex[(crc>>16)&0xf]); */
uart_putc(hex[(crc>>12)&0xf]);
uart_putc(hex[(crc>>8)&0xf]);
uart_putc(hex[(crc>>4)&0xf]);
uart_putc(hex[(crc)&0xf]);
uart_putcrlf();
return crc;
}

View File

@@ -53,11 +53,11 @@ void snes_main_loop() {
sram_crc = calc_sram_crc(sram_size);
if(sram_crc != sram_crc_old) {
uart_putc('U');
uart_puthexlong(sram_crc);
uart_putcrlf();
set_busy_led(1);
save_sram("/test.srm", sram_size, sram_base_addr);
set_busy_led(0);
}
sram_crc_old = sram_crc;
uart_putc('.');
}