From d5cbc3f085f712cffe73733aeb8e29cb748e240f Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Wed, 15 Sep 2021 00:38:18 -0400 Subject: [PATCH] Some fixes to the file copy code (in progress) --- applecorn.po | Bin 819200 -> 819200 bytes mainmem.svc.s | 27 ++++++++------------------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/applecorn.po b/applecorn.po index b2406b6791a95d7d95e518c32741d11cee0fd908..49b269b5390453c8e8c6c4172fce603a61762343 100644 GIT binary patch delta 5592 zcmeHJiFXrq9-rS#erZyn9EBRHO{ersN}EZ3L4(_aQiR}E+j16MAwKn?th%~yfg-vc zz~TYZty^^j!oCt$-p;O*H!QpMx$o6hxtg>S-wz(u zNu(O0_+gvZQ~S=5^WSDSVKM6Yq55tswkUPR$S%qOjM*Sb^pd z8~<+`CEj7<*VusluPOT~qEtxt(%F4f&??&P}#tx&wgpRoHkb;9c_Xd32xCz~#E^{y#(BUKajz>zXt zJQW>!>A;9bqpKbU1Sw2|w1G$h)#`a7*$H3g)M`P`4bdGXNm@^p?OackWSDAGd7o1g zV&STg?x3(ciNf%`gg-~LG|5FaPoorFQ;All-bEx25m}dq*PPAzKvj66Sfnl>(nCaD zNTi1e-`3#NZWm9R3~Eg*-l``yDe$-q;wAWXb@}ST{7{OzC_iLW>*NK8v0zw1 z=?*?dWFZ7OJ?bzXmA;0kEGIofRF0F@5>>}Z&r;B#`UH?80tzrtbRfQ-i2A5_KjO5~ zdUaDLyppj~eTKZosB6h2OjPOfo=w3k!g z=Nc=eeVl)irN5X7B2_479>F+8Ay)hi@M9fK>D-?5oAyiX1gEr4t?uB&9EOB1M0_Zh% zB97+Yb1G(J0i0Q3PmXT`7hZF2rG%x9mli<{!rA5~Q=01a2sZn&Bj;Qp2J zieos>aivIG00#+aU+hjOxtEEw?!3B*NbAqjP;5A_z9@fi3_GFpv^z|oj^^~PD)O!_ z^41smE4ZN`B$}nYf(ulIu(Ya3{4y{XCiO+)U|>;bxwN`S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num parms back as we found it STA GINFOPL BCS :ERR ; Error creating dest file - LDA #$00 ; Look for empty slot - JSR FINDBUF - STX :BUFIDX - JSR BUFADDR - BCS :ERR ; No I/O bufs available - STA OPENPL+3 - STY OPENPL+4 JSR OPENFILE BCS :ERR ; Open error LDA OPENPL+5 ; File ref num STA READPL+1 - LDX :BUFIDX - STA FILEREFS,X ; Store file ref number LDA #MOSFILE2 - STA OPENPL+2 + STA OPENPL2+2 LDA #$00 ; Look for empty slot JSR FINDBUF - STX :BUFIDX JSR BUFADDR BCS :ERR ; No I/O bufs available - STA OPENPL+3 - STY OPENPL+4 - JSR OPENFILE + STA OPENPL2+3 + STY OPENPL2+4 + JSR MLI + DB OPENCMD + DW OPENPL2 BCS :ERRCLS1 - LDA OPENPL+5 ; File ref num + LDA OPENPL2+5 ; File ref num STA WRITEPL+1 - LDX :BUFIDX - STA FILEREFS,X ; Store file ref number BRA :MAINLOOP :ERR SEC ; Report error RTS @@ -218,7 +208,6 @@ COPY1FILE STA :DESTTYPE ; TODO: USE THE DEST TYPE!!!! PHP BRA :CLOSE2 :DESTTYPE DB $00 -:BUFIDX DB $00 * ProDOS file handling for MOS OSFIND OPEN call * Options in A: $40 'r', $80 'w', $C0 'rw'