Open
Conversation
Original issue: FDOS#241 Test cases as Script for lDebug files: test$ cat testw1b.sld e 200 "A:\test.dat" 0 f 300 l 400 26 a mov ah, 3C mov cx, 0 mov dx, 200 int 21 xchg bx, ax mov dx, 300 mov cx, 1 mov ah, 40 int 21 mov ah, 68 int 21 int3 int3 jmp 100 . test$ cat testwp1b.sld e 200 "A:\test.dat" 0 f 300 l 400 26 a mov ah, 3C mov cx, 0 mov dx, 200 int 21 xchg bx, ax mov ax, 4200 xor cx, cx mov dx, 200 int 21 mov dx, 300 mov cx, 1 mov ah, 40 int 21 mov ah, 68 int 21 int3 int3 jmp 100 . test$ cat testwpp1.sld e 200 "A:\test.dat" 0 f 300 l 400 26 a mov ah, 3C mov cx, 0 mov dx, 200 int 21 xchg bx, ax mov ax, 4200 xor cx, cx mov dx, 201 int 21 mov dx, 300 mov cx, 1 mov ah, 40 int 21 mov ah, 68 int 21 int3 int3 jmp 100 . test$ cat testw1c.sld e 200 "A:\test.dat" 0 f 300 l 400 26 a mov ah, 3C mov cx, 0 mov dx, 200 int 21 xchg bx, ax mov dx, 300 mov cx, 201 mov ah, 40 int 21 mov ah, 68 int 21 int3 int3 jmp 100 . test$ cat testwp1c.sld e 200 "A:\test.dat" 0 f 300 l 400 26 a mov ah, 3C mov cx, 0 mov dx, 200 int 21 xchg bx, ax mov ax, 4200 xor cx, cx mov dx, 200 int 21 mov dx, 300 mov cx, 201 mov ah, 40 int 21 mov ah, 68 int 21 int3 int3 jmp 100 . test$
The possibility of fragmentation due to this misbehaviour was mentioned in FDOS#245 And it's also just slower to allocate the unneeded cluster just to free it again truncating the file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Another take on #241 and a related question in #245 which reads: