Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

The less time planning, the more time programming.


devel / comp.os.cpm / Random Read bug fix for DRI CPM3

SubjectAuthor
o Random Read bug fix for DRI CPM3dxf

1
Random Read bug fix for DRI CPM3

<ue6tkc$chrq$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=5115&group=comp.os.cpm#5115

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dxforth@gmail.com (dxf)
Newsgroups: comp.os.cpm
Subject: Random Read bug fix for DRI CPM3
Date: Sun, 17 Sep 2023 23:06:20 +1000
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <ue6tkc$chrq$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Sep 2023 13:06:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3a83a1fd36df9b844dec26fd0e7d9b32";
logging-data="411514"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Mb7jbh0EhDOVF1ojLFSKY"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:71tebxPZhwGS3cggJMRL5QvQpuw=
Content-Language: en-GB
 by: dxf - Sun, 17 Sep 2023 13:06 UTC

; ZPM3's Random Read bug fix applied to DRI BDOS30.ASM
; Source: http://cpmarchives.classiccmp.org/cpm/mirrors/www.triton.vg/tesseract/pds/093/zpm3s.arc
; NOTE: ONLY BRIEFLY TESTED

; Extent is in same directory fcb
push b! call get$dir$ext! pop b
cmp c
jz rrfix ;*** in last extent: treat as new area!
jnc rseek2 ; jmp if dir$ext > ext
pop d! push d! inr e! jnz rseek2 ; jmp if write fx
inr e! pop d! jmp set$lret1 ; error - reading unwritten data
rrfix:
pop d! push d ;*** get&save read flag (in E)
inr e! jnz rseek2 ;*** are we reading? no: ok, open this extent
lhld info! xchg! jmp ranclose ;*** yes: close extent and open
rseek2:

Additions are marked ***.

To verify the random read bug is quashed see rrbug.zip
https://drive.google.com/drive/folders/1kh2WcPUc3hQpLcz7TQ-YQiowrozvxfGw

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor