From 61afd42b6b60b267cb53661c9af7dd5ba4b7ab24 Mon Sep 17 00:00:00 2001 From: antoniovillena <> Date: Sat, 29 Jul 2023 11:25:09 +0200 Subject: [PATCH 1/2] arreglo plugin ZX3 --- SD/BIN/BPLUGINS/ZX3 | Bin 663 -> 739 bytes utils/zx3.asm | 47 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/SD/BIN/BPLUGINS/ZX3 b/SD/BIN/BPLUGINS/ZX3 index 7a5cf55061eb6a862c51f10fe5b6af80e109b095..57e0053d8818f7042a40ef421f5b4dc83cc7716f 100644 GIT binary patch delta 365 zcmbQv`j~Zsv4L?@kiV}&UVe!}QGR|&Y6`>2vp1TU8Gr=S{I?Yl2ohnuCaEEQ*0^b6 zvMm#kT%@dS+~k&-lM2?FmS36&)T#Km>HI>iS4~!Lnl#1#&9XNT0%>?-0@N^BiBT6s z1u`mus8U815H*`oD%H+Gk>SA2vo=k_H}C2mvTlT1FKoy7wo>uK|MhPZ-)6q8v=dNd z`0%zsPT}n$7OY5C;i;{{1F&1~))@W&57ux~@WX$g*^|#PsyM*>#RgUbw?`3V&)dMa zk#7qj5(k>#awtkC8!_pdfr5g=R)d>ErurGb!b(Nkrl)Y#tf1g}#;EWMY|cqW>%R}* LE@u1pcJWI9@Ajdt delta 289 zcmaFNI-PZbvBC4kAb($ly!;Y{qWt`l)D(u3XM38M8Gr=S{I?Yl2ohnuCaEEQ_IcyP zWLqX6xky?4d81oqPAXVyT7GFBP^aSbrt=H6<~3O@Xwnq_H_P5Y2&CbS2~fjiB}QEk z709RrqDmQ6K-6qTDapI80<3pyjQ;<(b5LYBaP#bkM&X-xbq`rLPL^U)ae%pn4eSQE z(-iF(-&Vd2d>i?;5F%011eZfmI=PNX-wfn@4qFXw4w>p_{0b`-KQ=yvt7Zjx@foAS UFR(c$8Lj_5e7l(K-`mA60WoHLr~m)} diff --git a/utils/zx3.asm b/utils/zx3.asm index 3b84779..0e555eb 100644 --- a/utils/zx3.asm +++ b/utils/zx3.asm @@ -164,11 +164,7 @@ Listo inc l ld a, (hl) cp d jr nz, Strcmp -Comprob ld b, ixl - djnz Lastbyte - ld a, ixh - ld ($ffff), a -Lastbyte ld a, $40 +Comprob ld a, $40 ld hl, $c000 exx call wrflsh @@ -176,6 +172,47 @@ Lastbyte ld a, $40 exx dec ixl jp nz, Bucle + wreg flash_cs, 0 ; activamos spi, enviando un 0 + wreg flash_spi, $13 + ld a, 1 + out (c), a + ld hl, $fff0 + xor a + out (c), h + out (c), l + out (c), a + ld a, $10 + ld hl, $f000 + in f, (c) +rdfls1 ld e, $20 +rdfls2 ini + inc b + ini + inc b + ini + inc b + ini + inc b + ini + inc b + ini + inc b + ini + inc b + ini + inc b + dec e + jr nz, rdfls2 + dec a + jr nz, rdfls1 + wreg flash_cs, 1 + ld a, ixh + ld ($ffff), a + ld a, $10 + ld hl, $f000 + exx + ld de, $fff0 + call wrflsh ld bc, zxuno_port ld hl, (Slot+1) ld a, core_addr From ad892e61ba3ac8eb6c312e2a73bef3f32165461e Mon Sep 17 00:00:00 2001 From: antoniovillena <> Date: Sun, 30 Jul 2023 02:25:42 +0200 Subject: [PATCH 2/2] arreglo plugin ZX3 --- SD/BIN/BPLUGINS/ZX3 | Bin 739 -> 745 bytes utils/zx3.asm | 3 +++ 2 files changed, 3 insertions(+) diff --git a/SD/BIN/BPLUGINS/ZX3 b/SD/BIN/BPLUGINS/ZX3 index 57e0053d8818f7042a40ef421f5b4dc83cc7716f..999c2da260b1ef0168c5c2902f3e7661da969301 100644 GIT binary patch delta 467 zcmaFN`jT~mYW=|mM(aOs3t8S)Jga|O`L^Jbcf(oBrXYV`g}nR{g`)iYlGGH2lV|TW zF*5)OrulCxAP^+Ncui769H`neFFC)cC^fl6AuT7dI77kHnc<`zH|yIZ?nWT7;O~o8~?qrU@_Y)!S`w{JOj8XDufyGU}-UJ(il7qTpIolwZVf(jrVTxzWr3Ux_1}kY7qk6)yZ9vl(-+J& delta 371 zcmaFK`j~Zss_pIuM(aOs3t8S4d~$6#Yups%@2ilPU!qWypI?%i!f^8JjV5LWAi*^M zZ3P5^L>RA0YKWgTo|vJ)F{R<#fwz@sXHA?S#%MfoxxBV#qk%BcAh*n%RIo{D`K5V4 zgA^Y(onNT+s>$k2lcxB;S@s4(K>Z)Z87(JsGRiUAEN?5GJx~xlYdpD%Q5C3u0i%+DO_T7=ySj(08=# zawtkCw=n6Of$ZS0)!^okseZ<s=_y<_D=3(rF)I85n{$%U`tQTHi`o9YUHlRN DT)UvC diff --git a/utils/zx3.asm b/utils/zx3.asm index 0e555eb..286438c 100644 --- a/utils/zx3.asm +++ b/utils/zx3.asm @@ -30,6 +30,9 @@ NoPrint ld (FileName+1), hl ld bc, zxuno_port out (c), 0 inc b + in a, (c) + and %01111111 + out (c), a in f, (c) jp p, Nonlock call Print