o add custom chip for mmio

This commit is contained in:
David Voswinkel
2009-05-17 08:48:44 -07:00
parent c66828729f
commit 1075795ef4
12 changed files with 541 additions and 280 deletions

View File

@@ -1,9 +1,9 @@
# SDK Config
PLATFORM=mac
PLATFORM=$(shell uname)
ifeq ($(PLATFORM),linux)
ifeq ($(PLATFORM),Linux)
# Linux Wine
SDK=/home/david/.wine/drive_c/65xx_FreeSDK
WINE=wine

View File

@@ -29,10 +29,8 @@ void main(void) {
word crc01;
word crc02;
padStatus pad1;
char line_header[32] = "BANK CRC ADDR 123456789ABCDEF";
char line[32] = " ";
char test_buffer[] = "da";
unsigned long addr;
char line_header[32] = "OK";
char packet[4] = "TEST";
initInternalRegisters();
*(byte*) 0x2105 = 0x01; // MODE 1 value
@@ -41,9 +39,14 @@ void main(void) {
*(byte*) 0x2100 = 0x0f; // enable background
enableDebugScreen();
writeln(line_header,0);
for (i=0;i<4;i++){
*(byte*) 0x3000=packet[i];
*(byte*) 0x700010=packet[i];
}
//writeln(line_header,1);
while(1){
while(!pad1.start) {
waitForVBlank();