More of the same.

This commit is contained in:
grinvader
2005-05-11 19:23:31 +00:00
parent 694baf8394
commit c61a70962a

View File

@@ -857,9 +857,7 @@ NEWSYM savespcdata
cmp al,'.' cmp al,'.'
jne .next jne .next
; Save stuff ; Save stuff
mov byte[edi],'s' mov dword[edi],'spc '
mov byte[edi+1],'p'
mov byte[edi+2],'c'
mov byte[edi+3],0 mov byte[edi+3],0
; Find an unoccupied file ; Find an unoccupied file
.tryagainspc .tryagainspc
@@ -1262,8 +1260,7 @@ NEWSYM savepcx
dec ecx dec ecx
jnz .clearhead2 jnz .clearhead2
; Initial header = 14 bytes ; Initial header = 14 bytes
mov byte[pcxheader],'B' mov word[pcxheader],'BM'
mov byte[pcxheader+1],'M'
mov dword[pcxheader+2],02A01Ah-768 mov dword[pcxheader+2],02A01Ah-768
mov dword[pcxheader+10],26 mov dword[pcxheader+10],26
@@ -1358,13 +1355,11 @@ NEWSYM GetFreeFile
%ifdef __MSDOS__ %ifdef __MSDOS__
cmp ecx,0 cmp ecx,0
jne .isbmp jne .isbmp
mov byte[.filename+9],'p' mov word[.filename+9],'pc'
mov byte[.filename+10],'c'
mov byte[.filename+11],'x' mov byte[.filename+11],'x'
jmp .doneextselect jmp .doneextselect
.isbmp .isbmp
mov byte[.filename+9],'b' mov word[.filename+9],'bm'
mov byte[.filename+10],'m'
mov byte[.filename+11],'p' mov byte[.filename+11],'p'
.doneextselect .doneextselect
mov byte[.filename+12],0 mov byte[.filename+12],0
@@ -1423,21 +1418,15 @@ NEWSYM GetFreeFile
cmp edx,esi cmp edx,esi
jne .next jne .next
mov esi,ebx mov esi,ebx
mov byte[esi],' ' mov dword[esi],' 000'
mov byte[esi+1],'0' mov word[esi+4],'0.'
mov byte[esi+2],'0'
mov byte[esi+3],'0'
mov byte[esi+4],'0'
mov byte[esi+5],'.'
cmp ecx,0 cmp ecx,0
jne .isbmp jne .isbmp
mov byte[esi+6],'p' mov word[esi+6],'pc'
mov byte[esi+7],'c'
mov byte[esi+8],'x' mov byte[esi+8],'x'
jmp .doneextselect jmp .doneextselect
.isbmp .isbmp
mov byte[esi+6],'b' mov word[esi+6],'bm'
mov byte[esi+7],'m'
mov byte[esi+8],'p' mov byte[esi+8],'p'
.doneextselect .doneextselect
mov byte[esi+9],0 mov byte[esi+9],0
@@ -1500,8 +1489,7 @@ NEWSYM save16b2
dec ecx dec ecx
jnz .clearhead2 jnz .clearhead2
; Initial header = 14 bytes ; Initial header = 14 bytes
mov byte[pcxheader],'B' mov word[pcxheader],'BM'
mov byte[pcxheader+1],'M'
mov dword[pcxheader+2],02A01Ah-256*224*3+512*448*3 mov dword[pcxheader+2],02A01Ah-256*224*3+512*448*3
mov dword[pcxheader+10],26 mov dword[pcxheader+10],26
mov dword[pcxheader+14],12 mov dword[pcxheader+14],12