diff --git a/cores/Colecovision/SD_Card.zip b/cores/Colecovision/SD_Card.zip new file mode 100644 index 0000000..f940338 Binary files /dev/null and b/cores/Colecovision/SD_Card.zip differ diff --git a/software/esprst/main.asm b/software/esprst/main.asm index 0e277c4..0c528f8 100644 --- a/software/esprst/main.asm +++ b/software/esprst/main.asm @@ -12,11 +12,15 @@ Start: ld hl, configuring : call putS ld hl, cmd_uart : call uartWriteStringZ - call wait : call wait + ld b, 255 +rdWt: + push bc : call uartRead : halt : pop bc : djnz rdWt ld hl, reseting : call putS ld hl, cmd_rst : call uartWriteStringZ - call wait : call wait +wrlp: + call uartReadBlocking : call pushRing + ld hl, response_er : call searchRing : cp 1 : jr nz, wrlp ld hl, setting_m : call putS ld hl, cmd_cwmode : call uartWriteStringZ @@ -80,6 +84,6 @@ cmd_cwmode defb "AT+CWMODE=1", 13, 10, 0 cmd_info defb "AT+GMR", 13, 10, 0 response_ok defb "OK", 13, 10, 0 -response_er defb "ready", 13, 10, 0 +response_er defb "ready", 0 SAVEBIN "esprst", Start, $ - Start \ No newline at end of file diff --git a/software/esprst/uart.asm b/software/esprst/uart.asm index c0820ed..d197d16 100644 --- a/software/esprst/uart.asm +++ b/software/esprst/uart.asm @@ -55,6 +55,7 @@ urb: ; BC will be wasted uartWriteByte: push af + rst #10 ld bc, ZXUNO_ADDR ld a, UART_STAT_REG out (c), a diff --git a/software/ugophy/uart.asm b/software/ugophy/uart.asm index 7b4ccf2..0ca1d13 100644 --- a/software/ugophy/uart.asm +++ b/software/ugophy/uart.asm @@ -17,7 +17,6 @@ uartBegin: uartReadBlocking: call uartRead push af : ld a, 1 : cp b : jr z, urb : pop af - ret nz jp uartReadBlocking urb: pop af