__________________________________________
(C) Sizenko Alexander
__________________________________________
I read the article Kolesnikov "BOOT from-
inside" and I want to share some replacements
aspirations. Since we are analyzing someone else's program,
then, naturally, we must point out its
potential glitches and shortcomings...
1. If the directory is from erased and existing
files will be jam-packed (all 8 sec-
tors), a table of file names will be
formed incorrectly (no check).
2. If there are more than 66 BASIC programs on the disk,
the list will begin to scroll, with all of you
consequences arising from this (no pro-
verki).
3. At startup, due to the use for dis-
pair of addresses of the beginning of the names of two teams
RLCA RLCA,files numbered 65 and 66 start-
will not repent (when counted from one).
4. If the disk is empty, then we can successfully
upload something. Previously it would have been less
noticeable, because boot popped up, now
however, after “refinement” the situation becomes
more "glucogenic".
5. Before starting the program, we restored
Set the mode to OVER 0, but not to INVERSE 0. De-
barking also the attributes are unreadable.
6. And it is highly advisable to clean up after yourself
memory.
Now I want to make comments to some
other comments, i.e. add yours (teach-
pointing out that this is still coding for beginners
shchih).
TEXTR LD (DE),A
This command is needed when rebooting
start (in the event that the number of strikes
there are fewer sic programs).
LAB_8 ...
This is the procedure for printing the current title in in-
version (by overlaying spaces along OVER1)
or restoring the last selected
th object (by repeated overlay onOVER1)
KLAWA SET 5,A
Essentially turns off possible CAPS
LOCK.
AGAIN ...
Most likely it would be to install boot on
new disk without any checks.
Variables VAR_1; The number of the selected file.
VAR_2; Number of the last selection
earlier file when moving to the next one
object.
7. HL there is no point in saving it on the stack.
------------------------------------------
Share your thoughts about the article