o get crc working on 8 banks
This commit is contained in:
@@ -30,11 +30,11 @@ void main(void) {
|
||||
word crc01;
|
||||
word crc02;
|
||||
padStatus pad1;
|
||||
char line_header[32] = "BANK CRC 123456789ABCDEF";
|
||||
char line_header[32] = "BANK CRC ADDR 123456789ABCDEF";
|
||||
char line[32] = " ";
|
||||
char test_buffer[] = "da";
|
||||
char *pointer;
|
||||
|
||||
char far * pointer;
|
||||
unsigned long addr;
|
||||
initInternalRegisters();
|
||||
|
||||
*(byte*) 0x2105 = 0x01; // MODE 1 value
|
||||
@@ -47,15 +47,21 @@ void main(void) {
|
||||
writeln(line_header,0);
|
||||
|
||||
while(1){
|
||||
pointer = (void*)0x8000;
|
||||
pointer = (void*)0x008000;
|
||||
addr = 0x008000;
|
||||
|
||||
crc02 = crc_update(test_buffer,2);
|
||||
//crc01 = crc_update(pointer,255);
|
||||
for(j=0; j<8; j++) {
|
||||
crc01 = crc_update(pointer,0x8000);
|
||||
int2hex(j,&line[0]);
|
||||
int2hex(crc01,&line[5]);
|
||||
//int2hex((word)pointer,&line[10]);
|
||||
for(j=0; j<16; j++) {
|
||||
//crc01 = crc_update(pointer,0x8000);
|
||||
crc01 = crc_update_mem(addr,0x8000);
|
||||
|
||||
int2hex((unsigned long)j,&line[0],4);
|
||||
int2hex((unsigned long)crc01,&line[5],4);
|
||||
int2hex((unsigned long)addr,&line[10],6);
|
||||
writeln(line,j+1);
|
||||
pointer += 0x010000;
|
||||
addr += 0x010000;
|
||||
}
|
||||
while(!pad1.start) {
|
||||
waitForVBlank();
|
||||
|
||||
Reference in New Issue
Block a user