Added more SPC save slots
This commit is contained in:
@@ -809,9 +809,15 @@ NEWSYM savespcdata
|
|||||||
cmp al,'.'
|
cmp al,'.'
|
||||||
jne .next
|
jne .next
|
||||||
; Save stuff
|
; Save stuff
|
||||||
|
%ifdef __LINUX__
|
||||||
|
mov byte[edi],'s'
|
||||||
|
mov byte[edi+1],'p'
|
||||||
|
mov byte[edi+2],'c'
|
||||||
|
%else
|
||||||
mov byte[edi],'S'
|
mov byte[edi],'S'
|
||||||
mov byte[edi+1],'P'
|
mov byte[edi+1],'P'
|
||||||
mov byte[edi+2],'C'
|
mov byte[edi+2],'C'
|
||||||
|
%endif
|
||||||
mov byte[edi+3],0
|
mov byte[edi+3],0
|
||||||
; Find an unoccupied file
|
; Find an unoccupied file
|
||||||
.tryagainspc
|
.tryagainspc
|
||||||
@@ -820,16 +826,33 @@ NEWSYM savespcdata
|
|||||||
jc .nofileopen
|
jc .nofileopen
|
||||||
mov bx,ax
|
mov bx,ax
|
||||||
call Close_File
|
call Close_File
|
||||||
|
%ifdef __LINUX__
|
||||||
|
cmp byte[edi+2],'c'
|
||||||
|
%else
|
||||||
cmp byte[edi+2],'C'
|
cmp byte[edi+2],'C'
|
||||||
jne .noC
|
%endif
|
||||||
|
jne .notc
|
||||||
mov byte[edi+2],'1'
|
mov byte[edi+2],'1'
|
||||||
jmp .tryagainspc
|
jmp .tryagainspc
|
||||||
.noC
|
.notc
|
||||||
cmp byte[edi+2],'9'
|
cmp byte[edi+2],'9'
|
||||||
je .nofileopen
|
je .donext10
|
||||||
inc byte[edi+2]
|
inc byte[edi+2]
|
||||||
jmp .tryagainspc
|
jmp .tryagainspc
|
||||||
|
.donext10
|
||||||
|
mov al,[edi+1]
|
||||||
|
cmp al,[edi+2]
|
||||||
|
je .nofileopen
|
||||||
|
cmp byte[edi+1],'P'
|
||||||
|
jne .notp
|
||||||
|
mov byte[edi+1],'0'
|
||||||
|
.notp
|
||||||
|
inc byte[edi+1]
|
||||||
|
mov byte[edi+2],'0'
|
||||||
|
jmp .tryagainspc
|
||||||
.nofileopen
|
.nofileopen
|
||||||
|
mov al,[edi+1]
|
||||||
|
mov [showmenu.saved+2],al
|
||||||
mov al,[edi+2]
|
mov al,[edi+2]
|
||||||
mov [showmenu.saved+3],al
|
mov [showmenu.saved+3],al
|
||||||
; copy spcextra ram to dspmem+192
|
; copy spcextra ram to dspmem+192
|
||||||
|
|||||||
Reference in New Issue
Block a user