diff --git a/hw/efinix_fpga/debug_profile.wizard.json b/hw/efinix_fpga/debug_profile.wizard.json index 685445b..19ea65c 100644 --- a/hw/efinix_fpga/debug_profile.wizard.json +++ b/hw/efinix_fpga/debug_profile.wizard.json @@ -3,7 +3,7 @@ { "name": "la0", "type": "la", - "uuid": "51d5f9c5395344da8c48559f580e066a", + "uuid": "d9fdd9521e234ab2a085f0e0ef437289", "trigin_en": false, "trigout_en": false, "auto_inserted": true, diff --git a/hw/efinix_fpga/super6502.xml b/hw/efinix_fpga/super6502.xml index 88d116f..5d5b50e 100644 --- a/hw/efinix_fpga/super6502.xml +++ b/hw/efinix_fpga/super6502.xml @@ -1,5 +1,5 @@ - + diff --git a/sw/kernel/kernel.c b/sw/kernel/kernel.c index edefc3b..246ce06 100644 --- a/sw/kernel/kernel.c +++ b/sw/kernel/kernel.c @@ -1,7 +1,22 @@ #include +char* longstring = \ +"This is a very long string that is meant to test the loader.\ + We can only load one cluster so far, which means 8 sectors of\ + 512bytes, or a total of 4k. If there was any more data than this,\ + then we would have to traverse the fat to find the next cluster number.\ + This may not be that difficult, but the file will need to be large\ + enough to actually stretch that far. The kernel will probably be\ + that big in the future, but for now when it doesnt really do anything\ + then it can't really be tested."; + + int main() { - cprintf("Hello, world!\r\n"); + char* string = "this is a shorter string"; + + cprintf("%s", string); + + cprintf("Here is a long string: %s\r\n", longstring); while(1); diff --git a/sw/kernel/link.ld b/sw/kernel/link.ld index a7e01bb..264fee5 100644 --- a/sw/kernel/link.ld +++ b/sw/kernel/link.ld @@ -42,7 +42,7 @@ FEATURES { } SYMBOLS { - __STACKSIZE__: value = $0E00, type = weak; + __STACKSIZE__: value = $0200, type = weak; __STACKSTART__: type = weak, value = $0800; }