Virtual Worlds #01
31 декабря 1999
  TR-DOS  

Assembler - Secrets of the TR-DOS: the methods of distribution presence drives.

<b>Assembler</b> - Secrets of the TR-DOS: the methods of distribution presence drives.
             TR-DOS



            (C) TimeKeeper / MHCG



  Opening this column, I would like
would be to start to say a few words
about why this is and for whom. The fact that a conversation on 
this subject was already quite a lot and

it may seem that nothing new here for you can imagine,
So, once I hasten to assure you that there are still
enough problems and puzzles
that joint efforts can
try to solve. Yes and no
All that has been published or
someone said about the TR-DOS
was correct and understandable. I have already
quite a long time trying to write
driver disk to complete the interception of disk errors,
but could not find all the necessary data. Even in
famous ZX-Revue I have not found
answers to my
issues, and listings of drivers that I tried to recruit,
was often a lot of mistakes
or they simply did not fit me. By the way, once I started,
I'd tell a few "gentle"
of articles from the ZX-Revue. Interesting there, of course, 
very much, but here's Listings leave much to be

desired. Driver disk, which is in this issue
magazine, has been recruited precisely because
Revyushki, but it otassemblirovat
in its original form and is not
failed. Part Subprogramme just
missing, and part was napisana wrong. I only narrowly failed to 
bring the driver to working condition. In connection with the

this occasion I had the
the impression that the listings
programs are printed without any
what a preliminary check on the performance. But
this is the issue of professionalism, and perhaps we'll come 
back to it, but in another again ...


 The first thing I wanted to write - it's how you can determine
availability of disk drives. Not the presence or absence of a 
floppy disk in drive, namely the existence of the drive. You 
ask why? Well, this is at your discretion. I used this 
verification in Hard Core ver 3.01 full, to

know how many panels can be printed, two or one, and just 
recently included in the fashion insert in the program test

computer, so that's there then
You can adapt this procedure:



        ORG # 8000

        ENT

        XOR A

        CALL TEST

        LD (DRV_0), A

        LD A, 1

        CALL TEST

        LD (DRV_1), A

        LD A, 2

        CALL TEST

        LD (DRV_2), A

        LD A, 3

        CALL TEST

        LD (DRV_3), A

        RET
TEST OR # 3C

        LD C, # FF

        LD HL, # 1FF3

        CALL DOS

        LD A, # 08

        LD HL, # 2FC3

        CALL DOS

        LD IY, 10000

, The number of matched IY
; Empirically.
, (The maximum time of movement; of drive heads from the 
village; glaciers on track zero) 

AGAIN LD HL, # 1FDD

        CALL DOS

        LD A, (# 5CD7)

        CP # 50

        RET NZ

        DEC IY

        LD A, LY

        OR HY

        JR NZ, AGAIN

        RET
DOS PUSH HL

        JP # 3D2F
DRV_0 DEFB 0
DRV_1 DEFB 0
DRV_2 DEFB 0
DRV_3 DEFB 0



  Generally speaking, the controller
There is a special tool for
definition of "readiness" to drive, but I have this tool
triggered only when the drive is inserted floppy disk. A 
reduced the procedure correctly determines whether the drive is 
not regardless of whether there is in it

floppy disk or not.


  How it works: when we send the controller command output
on the zero track, he tries to
receive from the drive confirmation operation is performed.
(Signal 'head in the initial state' - 2_oy bit port # 1F)
If the drive is connected and the head is at the zero path
the controller immediately generates
this signal, and if the drive
No, the controller receives
confirmation from the drive and not
will issue a confirmation signal, indicating that
team has not been completed. Naturally, testing should be 
carried out at off turbo mode if you have it. 


  After starting the program will
in turn the LED
drives. To test each
have spent approximately
1 / 25 seconds if the drive
connected, and about 1 / 2 otherwise, so that during 
verification, before going on to the next drive, it would be 
nice display a message like: "wait, test drive number

N ", so that the user did not think that the program hung.


  After testing, the corresponding variable is entered
toe, if the device is not detected or # 28 with a positive
result.


  At this opredelyalki about everything.
Maybe next time I'll show you how to determine
drive parameters: number of sides, paths, velocity heads, and 
perhaps even firm, to produce this model. :-))








Other articles:

From the Editor - the story of creating a magazine.

Guide - the detailed contents of rooms.

Description shells - a description of the shell and methods for its proper operation.

Authors - the authors.

Assembler - Z80 Flags: undocumented command processor Z80.

Assembler - Overlays for JC: Description of methods for creating utilities running Jemmini_Commander 4.0T.

Assembler - Secrets of the TR-DOS: the methods of distribution presence drives.

Assembler - Circles on the water: The algorithms simulate the effect of a well-known on other platforms, called "ripples."

Assembler - search path. Solution to the problem of "static" find the shortest route between two points.

Spending - The mechanical effect. This story is about what happens using condoms dubious origin.

Iron - Bugs keyboard: why in the game for two players, when playing together, the computer does not listen to your management, and information on how to avoid it.

Iron - Interrupts: Something strange about the interruptions of the second kind.

Technical assistance - the thought aloud. It is interesting letter from fido7.zx.spectrum conference on the theme "On the question of standardization."

Technical assistance - File FAQ. A complete analysis of file formats, most often vstechayuschihsya the Internet, and not only, as well as methods for their conversion into a "normal" form.

Technical assistance - Dos Review: material on the format of the disk operating system IS-DOS.

Technical assistance - Dos Review 2: The material on the format of disk operating systems, PC "Agat", Radio-86RK, SP-DOS, BK-0011M.

Technical assistance - Dos Review 3: The material on the format of the disk operating system CP / M, ASC SOUND MASTER, RT11, SM computers RAFOS.

Technical assistance - Dos Review 4: The material on the format of the disk operating system from an unknown author.

DI: HALT: 99 - An analysis of DH: 99. Finally, the whole truth about the past summer, in Dzerzhinsk party, from the organizers themselves.

DI: HALT: 99 - Hidden Parts. Dzerzhinsky life (not only) in the period spektrumistov of DI: HALT: 99.

DI: HALT: 99 - The results. Having walked DH: 99, almost every other newspaper, considered it their duty to come up with a new version of the results. This article is the direction on the fact that finally put the record straight "I".

Programs - Alien: description and walkthrough of the film "Alien."

Programs - description of the Universal AntiProtector 0.01 (a program for automatically splitting a number of popular defense systems).

Programs - Editor-game screens, "White Spot".

Programs - Exhumator: a program to "drive the exhumation."

Programs - chankovy graphics editor: Hard Core ver 3.01

Programs - Eye of crying: the files of allowing to watch pictures, sprites, while listening to etommuzyku.

Spending - Verse of Sysop'e. Poetry, but ...

Spending - Sex and Fido. Humorous raskaz about What about actually making love inveterate fidoshniki.

Spending - Anecdotes. A selection of jokes with a computer theme.


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
Brest news - Who does what and who lives as breathing.
Category X - Games: vzgyad from Lvov (review new products).
Let's take - The story of CODEMAN'a currently.
Programmers - TR-DOS programmers.

В этот день...   21 November