Builds on Merlin-16 again.

This commit is contained in:
Bobbi Webber-Manners 2021-09-16 23:16:05 -04:00
parent 4429418750
commit d3d4017daf
19 changed files with 61 additions and 35 deletions

Binary file not shown.

View File

@ -200,3 +200,5 @@ MAINZP MAC

View File

@ -470,3 +470,5 @@ OSBM2 ASC ').'

View File

@ -27,7 +27,10 @@
OLDCHAR EQU OSKBD1 ; *TEMP* ; character under cursor
COPYCHAR EQU OSKBD2 ; *TEMP* ; character under copy cursor
** Moved to AUXMEM.MOSEQU.S for Merlin-8/-16
*COPYCHAR EQU OSKBD2 ; *TEMP* ; character under copy cursor
FLASHER EQU BYTEVARBASE+193 ; flash counter for cursor
FXEXEC EQU BYTEVARBASE+198
@ -441,12 +444,3 @@ BYTE7DOK RTS
BYTE76 LDX #$00 ; Update LEDs and return X=SHIFT
RTS ; Not possible with Apple

View File

@ -946,4 +946,6 @@ ERROR2E DW $C800

View File

@ -182,3 +182,5 @@ HELLO ASC 'Applecorn MOS 2021-09-16 snapshot'

View File

@ -497,4 +497,6 @@ AUXBLK ASC '**ENDOFCODE**'

View File

@ -63,8 +63,8 @@ FSCV EQU $21E ; FSCV misc file ops
BYTEVARBASE EQU $190 ; Base of OSBYTE variables
OSFILECB EQU $2EE ; OSFILE control block
COPYCHAR EQU OSKBD2 ; ** TEMP **
* $0300-$03DF
* $03E0-$03FF Used for interfacing with ProDOS XFER

View File

@ -529,3 +529,5 @@ ECHOLP1 JSR GSREAD
* JMP OSNEWL

View File

@ -621,3 +621,5 @@ BYTEA0 LDY #79 ; Read VDU variable $09,$0A
* TEST

View File

@ -60,3 +60,5 @@ GEOFCMD EQU $D1

View File

@ -106,3 +106,5 @@ RESET TSX

View File

@ -132,6 +132,8 @@ CANTOPEN ASC "Unable to open ROM file"

View File

@ -124,3 +124,5 @@ QUITPL HEX 04 ; Number of parameters

View File

@ -138,6 +138,8 @@ ROM8 STR "USERROM2.ROM"

View File

@ -41,29 +41,29 @@ FINDBUF LDX #$00
* On entry: buffer number in X
* On exit: buffer address in AY
* Carry set if no bufs, clear otherwise
BUFADDR CPX #$00
BNE :S1
LDA #<IOBUF1
LDY #>IOBUF1
BRA :EXIT
:S1 CPX #$01
BNE :S2
LDA #<IOBUF2
LDY #>IOBUF2
BRA :EXIT
:S2 CPX #$02
BNE :S3
LDA #<IOBUF3
LDY #>IOBUF3
BRA :EXIT
:S3 CPX #$03
BNE :NOBUFS
LDA #<IOBUF4
LDY #>IOBUF4
:EXIT CLC
RTS
:NOBUFS SEC
RTS
BUFADDR CPX #$00
BNE :S1
LDA #<IOBUF1
LDY #>IOBUF1
BRA :EXIT
:S1 CPX #$01
BNE :S2
LDA #<IOBUF2
LDY #>IOBUF2
BRA :EXIT
:S2 CPX #$02
BNE :S3
LDA #<IOBUF3
LDY #>IOBUF3
BRA :EXIT
:S3 CPX #$03
BNE :NOBUFS
LDA #<IOBUF4
LDY #>IOBUF4
:EXIT CLC
RTS
:NOBUFS SEC
RTS
* Check if file exists
* Return A=0 if doesn't exist, A=1 file, A=2 dir
@ -188,3 +188,5 @@ FILEREFS DB $00,$00,$00,$00

View File

@ -303,3 +303,5 @@ PREFIX DS 65 ; Buffer for ProDOS prefix

View File

@ -111,7 +111,7 @@ COPYFILE >>> ENTMAIN
CMP #$02 ; Existing directory?
BNE :BADDEST ; If not, error
BRA :MAINLOOP ; Source: wildcard, dest: dir
:NOWILD
:NOWILD
:MAINLOOP
LDA MOSFILE2 ; Length
STA :OLDLEN
@ -1058,3 +1058,5 @@ MAINRDEXIT >>> XF2AUX,NULLRTS ; Back to an RTS

View File

@ -382,3 +382,5 @@ MATCHBUF DS 65 ; For storing match results (Pascal str)