is-dos file operations

ZXNet echo conference «code.zx»

From 500:812/07.19 To all 19 April 1998

Hello, dear all! People! How to read files in IS-DOS not block by block, but byte by byte? There seems to be a function rpart(#29), however, nothing works with it, and with block (rifle(#2b)) everything is ok. Maybe there are some parameters needed? Throw a piece of listing into the echo, please... Bye, √a└e┌┐┼!┌┐ P!┌┬┐e┌┐0√ -+- SMM version 1.08

From 500:812/06.13 To Valentin Pimenov 23 April 1998

Hello Valentin! 19-04-98 at 11:04 Valentin Pimenov => all: VP> People! How to read files in IS-DOS not block by block, but byte by byte? Easy. ;)) VP> There seems to be a function rpart(#29), however, nothing works with it Are you stuck? ;))) In... Not out... Everything comes out!!!:)))) Did you open the file before reading/writing part of it? VP> and with block (rifle(#2b)) everything is ok. Maybe there are some parameters needed? Parameters... hmm... Didn't you set the registers?;))) Well, you're a sadist. ;)) AHL - offset from the beginning of the file. IX - address in memory. DE - number of bytes. C - #29. VP> Throw a piece of listing into the echo, please... Hold: ====cut of tst_rst.as==== ORG 24000 CALL BRK;If you don't have a scorpion, remove it. LD A,#00 ;number of the file to be opened. ;Zero is the internal description- ;catalog body;)))) LD C,#26 RST #10;actually opening the file. XOR A LD HL,#0000 LD DE,#0010 LD IX,#5800 LD C,#29 RST #10 ;resulting in the first 16 bytes ;directory descriptors will be considered;tans to the attributes area. XOR A LD A,#F4 ;output with screen clearing, etc. RET ;-----------------------; BRK PUSH HL LD HL,102 EX (SP),HL JP #3D2F ;press the magic button.;)) =======end of cut======== If you need anything else, write...;) Best wishes, Oleg aka Ruiner. -+- Shoot-Edit v6.06