From 54a656f33ed16e56f5d5129c7dfc5d5224793fde Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Mon, 6 Sep 2021 23:43:42 -0400 Subject: [PATCH] Cleaned up CRTFILE. --- applecorn.po | Bin 819200 -> 819200 bytes applecorn.s | 2 ++ auxmem.bytwrd.s | 2 ++ auxmem.chario.s | 2 ++ auxmem.hostfs.s | 2 ++ auxmem.init.s | 2 ++ auxmem.misc.s | 2 ++ auxmem.mosequ.s | 2 ++ auxmem.oscli.s | 2 ++ auxmem.vdu.s | 2 ++ mainmem.fsequ.s | 2 ++ mainmem.init.s | 2 ++ mainmem.ldr.s | 2 ++ mainmem.lists.s | 2 ++ mainmem.menu.s | 2 ++ mainmem.misc.s | 21 +++++++++++++++++- mainmem.path.s | 2 ++ mainmem.svc.s | 55 +++++------------------------------------------- 18 files changed, 55 insertions(+), 51 deletions(-) diff --git a/applecorn.po b/applecorn.po index 8fd314410973661ac6cf51345209418512a3fc70..fa1537778b6423036dad817ffea952bdedbd3cec 100644 GIT binary patch delta 3835 zcmdT`3wKjh7QW}++|viIDwLM;x*d{28gf$Y3{>dD^qETfpalhAWM<*3h=`&ijzh0X z>I`zR+68A|0#oav8uiAsO2VtQPzp_LB`D}1GM1JiW!V}8b=EK}W}l>~ROJUua#zk{ zf8X9`@AI9LE6caa@~v*222HI=(v<5A=F(DYUQS6_F)8QZqsii;xcsqPk|8-x%k^^5 z86Q`(L!+-WnHMi9$}1w-OBdZ$mP^Vt7H%ph&K-&5xiBopVlFEz0oVgvEN7j0BbcS6 zd{KTmz@Fu_TwNZ(3_r!?Ipa{!!s42h;;6a0=oy5?1q`7+3iQ z9y!T#WXO3*d5*OZ$eI>z5;ukX95#Chc4zM5V2v~j*X31HisR<4{>6HXVX`&1ESSsdyvQwx7#XN$2ac<}J96YC@VOcRzaUAa9QlRg~BkjJ9 zk2TkPUAI{Ir(kLTawQh`2kMO;N6{;!xh zHMr_<2K%Je@A}SM?hB{pedem@6=+2~UP_;Hh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*W|i1;mM@}8B|Px- z?98_Yvd3`!#2Qq|n{jTk!bWz?^1LON;;{m2W2O8Gem9XmXNOj{-Xy<{bDp67-{NeR zupggxW7*BwrlKoszfo@FYeeO}72%o)!;S(~YOwc)3lmpNpnb9@^o+ z(m3`xc^|aK3pL19AaG91eI+dcEFS_FpU`=C=vHrExAN&>7{(U2Q_>OOl3JB(*V}IV z^}~;De$4O@`6!&spsZwd!zoCj>5crFYM(~Tan&S7Borokh)p!oJ~A$pqqp>lZ+aA zkOXwqM^vBB(86I0tIT4%w18%6R$g*@qRVd(Lo*{rXgW2Ug(Crzn2eSh2xtb2F7sTU z4Q~$wqB~*I7}gj+Q~&dS&M?S$-ITiBA9`9_oxR5Dqp>P1cZ+*Ab?=>9{Z@zAF@pYP ze~<|r)Iz4_yF`Wux^8t$*Rdq^`BYP5;eEQvIxej-@rtS-H#}THXekbn0bzrr=_iHmX{!P`zH( z#fx>W!J&3n=iTo1q3(gczqGh+kmirtqkHskXJFe?O{7Z?T{Ov*M#k08nPqk6OIBKq z_RE?^CN0@W$F1w`X7*~iNy`qyn<>*5gUQJlD7k+Gh5vTi_s+p#df^R76}^VWve7gN zGVoPutB2gBadsYBSr1w3IxUtljwBKa=-vsrue$$)C8L3V`=67Ywa{YQ0!-0tg*cA47Ba0WfL8LvyN z>mTU8GtlSi>Hfs!ZlUQ8*sQ$06JEmfwa;LgvTPTWipmxPI(hQXuO2-78extXKukzn zvNS0|LuW)0Rvo| AzyJUM diff --git a/applecorn.s b/applecorn.s index 20c1336..e43f2f5 100644 --- a/applecorn.s +++ b/applecorn.s @@ -183,3 +183,5 @@ MAINZP MAC * Automatically save the object file: SAV APPLECORN + + diff --git a/auxmem.bytwrd.s b/auxmem.bytwrd.s index 2e77e50..02883e0 100644 --- a/auxmem.bytwrd.s +++ b/auxmem.bytwrd.s @@ -539,3 +539,5 @@ OSBM2 ASC ').' + + diff --git a/auxmem.chario.s b/auxmem.chario.s index 7c5e1d5..cfd1618 100644 --- a/auxmem.chario.s +++ b/auxmem.chario.s @@ -443,3 +443,5 @@ KBDDONE RTS + + diff --git a/auxmem.hostfs.s b/auxmem.hostfs.s index 14b9d39..5ca07d7 100644 --- a/auxmem.hostfs.s +++ b/auxmem.hostfs.s @@ -899,3 +899,5 @@ ERROR2E DW $C800 + + diff --git a/auxmem.init.s b/auxmem.init.s index 1a2901e..8af4403 100644 --- a/auxmem.init.s +++ b/auxmem.init.s @@ -156,3 +156,5 @@ HELLO ASC 'Applecorn MOS 2021-09-06 snapshot' + + diff --git a/auxmem.misc.s b/auxmem.misc.s index 97fe0e6..2de4571 100644 --- a/auxmem.misc.s +++ b/auxmem.misc.s @@ -470,3 +470,5 @@ AUXBLK ASC '**ENDOFCODE**' + + diff --git a/auxmem.mosequ.s b/auxmem.mosequ.s index 46b86d1..a683d7c 100644 --- a/auxmem.mosequ.s +++ b/auxmem.mosequ.s @@ -72,3 +72,5 @@ OSFILECB EQU $2EE ; OSFILE control block + + diff --git a/auxmem.oscli.s b/auxmem.oscli.s index 484dc62..35e1a6f 100644 --- a/auxmem.oscli.s +++ b/auxmem.oscli.s @@ -572,3 +572,5 @@ ECHO3 PHP + + diff --git a/auxmem.vdu.s b/auxmem.vdu.s index 2c03c89..d3b98d0 100644 --- a/auxmem.vdu.s +++ b/auxmem.vdu.s @@ -501,3 +501,5 @@ BYTEA0 LDY #79 ; Read VDU variable $09,$0A + + diff --git a/mainmem.fsequ.s b/mainmem.fsequ.s index 0b94a4b..d3635bd 100644 --- a/mainmem.fsequ.s +++ b/mainmem.fsequ.s @@ -48,3 +48,5 @@ GEOFCMD EQU $D1 + + diff --git a/mainmem.init.s b/mainmem.init.s index c167ff6..7c2d6d0 100644 --- a/mainmem.init.s +++ b/mainmem.init.s @@ -94,3 +94,5 @@ RESET TSX + + diff --git a/mainmem.ldr.s b/mainmem.ldr.s index b74db4c..4701e23 100644 --- a/mainmem.ldr.s +++ b/mainmem.ldr.s @@ -123,3 +123,5 @@ CANTOPEN ASC "Unable to open ROM file" + + diff --git a/mainmem.lists.s b/mainmem.lists.s index 0d2a7bb..1a3ce34 100644 --- a/mainmem.lists.s +++ b/mainmem.lists.s @@ -98,3 +98,5 @@ QUITPL HEX 04 ; Number of parameters + + diff --git a/mainmem.menu.s b/mainmem.menu.s index 28e4473..5591ea9 100644 --- a/mainmem.menu.s +++ b/mainmem.menu.s @@ -129,3 +129,5 @@ ROM8 STR "USERROM2.ROM" + + diff --git a/mainmem.misc.s b/mainmem.misc.s index b61ec67..a54c7b6 100644 --- a/mainmem.misc.s +++ b/mainmem.misc.s @@ -87,7 +87,24 @@ SETINFO LDA #$07 ; SET_FILE_INFO 7 parms RTS * Create disk file -CRTFILE JSR MLI +* Uses filename in MOSFILE +CRTFILE JSR MLI ; GET_TIME + DB GTIMECMD + LDA #MOSFILE + STA CREATEPL+2 + LDA #$C3 ; Open permissions + STA CREATEPL+3 + LDA $BF90 ; Current date + STA CREATEPL+8 + LDA $BF91 + STA CREATEPL+9 + LDA $BF92 ; Current time + STA CREATEPL+10 + LDA $BF93 + STA CREATEPL+11 + JSR MLI DB CREATCMD DW CREATEPL RTS @@ -130,3 +147,5 @@ FILEREFS DB $00,$00,$00,$00 + + diff --git a/mainmem.path.s b/mainmem.path.s index 90f1d72..33dac84 100644 --- a/mainmem.path.s +++ b/mainmem.path.s @@ -274,3 +274,5 @@ PREFIX DS 65 ; Buffer for ProDOS prefix + + diff --git a/mainmem.svc.s b/mainmem.svc.s index 5df6cf6..f3b0a20 100644 --- a/mainmem.svc.s +++ b/mainmem.svc.s @@ -52,31 +52,13 @@ MAKEDIR >>> ENTMAIN JSR COPYFB ; Copy back to aux mem CMP #$02 BEQ :EXIT ; Dir already exists -* Make into a subroutine LDA #$0D ; 'Directory' STA CREATEPL+7 ; ->Storage type LDA #$0F ; 'Directory' STA CREATEPL+4 ; ->File type -* subroutine.... - LDA #MOSFILE - STA CREATEPL+2 - LDA #$C3 ; 'Default access' - STA CREATEPL+3 ; ->Access STZ CREATEPL+5 ; Aux type LSB STZ CREATEPL+6 ; Aux type MSB -* Don't we have to make a call to update BF90-BF93? - LDA $BF90 ; Current date - STA CREATEPL+8 - LDA $BF91 - STA CREATEPL+9 - LDA $BF92 ; Current time - STA CREATEPL+10 - LDA $BF93 - STA CREATEPL+11 - JSR CRTFILE -* ... + JSR CRTFILE ; Create MOSFILE BCS :EXIT ; Failed, exit with ProDOS result JSR UPDFB ; Update FILEBLK JSR COPYFB ; Copy FILEBLK to aux mem @@ -118,33 +100,19 @@ OFILE >>> ENTMAIN CMP #$80 ; Write mode BNE :S0 JSR DESTROY -* Make into a subroutine LDA #$01 ; Storage type - file STA CREATEPL+7 LDA #$06 ; Filetype BIN STA CREATEPL+4 - LDA #MOSFILE - STA CREATEPL+2 STA OPENPL+2 - LDA #$C3 ; Access unlocked - STA CREATEPL+3 LDA #$00 ; Auxtype STA CREATEPL+5 LDA #$00 STA CREATEPL+6 - LDA $BF90 ; Current date - STA CREATEPL+8 - LDA $BF91 - STA CREATEPL+9 - LDA $BF92 ; Current time - STA CREATEPL+10 - LDA $BF93 - STA CREATEPL+11 - JSR CRTFILE -* ... + JSR CRTFILE ; Create MOSFILE :S0 LDA #$00 ; Look for empty slot JSR FINDBUF STX BUFIDX @@ -435,34 +403,19 @@ SAVEFILE >>> ENTMAIN DB DESTCMD DW DESTPL STZ :BLOCKS -* TO DO: Make this a subroutine LDA #$01 ; Storage type - file STA CREATEPL+7 LDA #$06 ; Filetype BIN STA CREATEPL+4 -* subroutine.... LDA #MOSFILE - STA CREATEPL+2 STA OPENPL+2 - LDA #$C3 ; Access unlocked - STA CREATEPL+3 LDA FBLOAD ; Auxtype = load address STA CREATEPL+5 LDA FBLOAD+1 STA CREATEPL+6 - LDA $BF90 ; Current date - STA CREATEPL+8 - LDA $BF91 - STA CREATEPL+9 - LDA $BF92 ; Current time - STA CREATEPL+10 - LDA $BF93 - STA CREATEPL+11 JSR CRTFILE -* ... BCS :FWD1 ; :CANTOPEN error JSR OPENFILE BCS :FWD1 ; :CANTOPEN error @@ -845,3 +798,5 @@ MAINRDEXIT >>> XF2AUX,NULLRTS ; Back to an RTS + +