Added deviceDriverHDD.ts and deviceDriverHDD.js, both files are just a
shell at the moment. Also added the js file to index.html and fixed the
little whoopsie with PCB title instead of Ready Queue... It used to be a
PCB for project 2 and I never changed the name when converting it
over!!!! Bad Dan!
added HDD to display and a function to do a little test display. Also
added global vars for the display and the hdd driver. set them to load
during the kernel.
got a simple hdd display up and running ... initals to all zeros for
now.
few comments, setup constants for track, sector, block, set up local
storage, things like that ... nothing too exciting yet - Oh, also stole
... umm borrowed a html storage check from diveintohtml5 and give credit
in comments ... (I did add a slight typescript twist :)
working on format, not tested but think it will work ... made an update
display, to well update the hdd display. making progress...
fixed the hhd display to say meta (no idea what to call this area
really). Added format command to the shell and some helper functions in
our device driver... next I think it will be time to build a way to keep
track of file name for fast lookup and get create filename working.
created a create file function. it is in the early stages so little to
no error checking and I am sure it is as buggy as shit. I did not want
to parse strings so I kepted track, sector and block as numbers, but
this is getting very cluttered... well not going backwards so have to
fucking deal with this...

also added file.js to the index.html file.
lots of bugs, lots of bugs ... I am doing a slight re-factor and trying
to pass read() and write() strings as TSB rather than 3 ints as before.
It seems this will be easier when finding free ones... Now I can do some
loops which are shitty n^3 BUT with just a few TSB to look through it
will be fast enough.

so -- everything is a damn mess but wanted to push while I kinda have
format and create file working again.
I can create and delete files... still need to remove all the data from
a file ... aka just mark it as free. That is all I do with delete
file...
delete and chain delete work ... (well, I guess they work.)
I can now format a drive after it has been formated...of course, it does
not do any error checking yet. :) So, it will just format... BUT ... my
plan is to make everything work, then do error checking and comments and
stuff.
made hdd display wider, fixed up a bug that would not display the fresh
hdd after a second format.
-added some error checking to create, in both shell and its function in
device driver...FYI: I am not happy with it, but time to fix it later I
suppose!
cleaned up write and read, most obvious bugs are gone... can read and
write over a chain.
check for drive formatting for ls command and delete command.
made a shell function for priority in scheudle object. created set and
get schedule functions in shell.
ok... added "location" to PCB display, created another enum in PCB for
location (not sure why) ummmmmm -- make a testswap functioin, that I
will remove later - just for testing that I can "swap in" any pcb...
seems to work, or at least, I am writing so we shall see...

also - I was doing 60 bits for data and not 60 bytes - not on purpose,
but because I was using 1 zero to display a byte, BUT when I converted a
letter to hex, it is 2 nibbles, or 2 hex digits for a byte. I since
created more "holder" zeros, so every 2 zeros (00) represents 1 byte...
changed read to return the string not print to terminal, let shell
command handle that. Changed write to return a boolean instead of saying
"wrote text.." and let shell handle that. Also have some templates for
rollIn and rollOut that should work with some bugs... going to attempted
implementing them now.
so we can load more than 3 programs, before I can attempt to run need to
implement a swap method in scheduling that will deal with rollIn and
rollOut...

Have to say there is a lot of code I would like to do a bit differently.
got swapping working. Some bugs to be worked out, but it works well ...
just need to clean the code and fix a minor issue where it writes too
much to HD. it is an issue with the zero.