Permalink
Browse files

Added support for tracks (not tested)

  • Loading branch information...
1 parent 7fda6ce commit af4edb153ea0d4b3c489bfe9a72baca9eb482524 @stg committed May 21, 2012
Showing with 139 additions and 100 deletions.
  1. +47 −34 README
  2. BIN bin-linux/knit
  3. BIN bin-windows/knit.exe
  4. +92 −66 src/knit.c
View
81 README
@@ -23,16 +23,18 @@ Compile and launch knit executable.
Typing ? or help will give
-: ?/help show this
-: r/read read in data from file
-: w/write write out data to file
-: f/format clear all contents
-: a/add add pattern
-: s/show display data content
-: e/emulate emulate floppy
-: i/info additional info
-: q/quit end program
-: x/halt halt on errors
+ ?/help show this
+ r/read read in data from file
+ w/write write out data to file
+ f/format clear all tracks
+ t/track set working track
+ a/add add pattern to track
+ s/show display content of track
+ i/info additional track info
+ e/emulate emulate floppy
+ q/quit end program
+ x/halt halt on errors
+
read - Reads image on disk to memory
The file can be either disk image or folder with emulator files.
@@ -54,9 +56,20 @@ format - Clear computer ram contents
This will delete everything currently contained in memory and
ready the program for input of a new file.
+
+track - Set working track
+ The machine can store patterns in two separate tracks and this
+ is chosen when saving/loading from the machine.
+
+ This will sets the current working track for add, show and
+ info commands.
+
+ Tracks are entered as a number between 1 and 2, ie:
+ track #> 1
+
add - Add a pattern to memory
- The pattern is read from a raw image file, ie:See
+ The pattern is read from a raw image file, ie:
filename> patterns/903.raw
See doc\raw_format.txt for a description of the format.
@@ -77,29 +90,6 @@ show - Show patterns contained in memory
pattern as well as it's binary data representation.
-emulate - Start floppy emulator
-
- This will ask for a serial device and the format is different
- depending on your system. For linux-flavors, it will usually
- look like:
- serial device> /dev/ttyS0
-
- For windows, it will look something like:
- serial device> COM1
-
- After entering a serial device, the program will go into
- floppy emulation mode.
-
- You can exit this mode by sending a SIGINT, which is usually
- Ctrl+C on most systems.
-
- While in this mode, you can use the knitting machine to save
- or load data into program memory, which can first be build
- using add or read using read.
-
- After saving from the machine you can keep it with write.
-
-
info - Shows additional non-pattern information
This will display all important fields in the currently
loaded file and run a verification suite against all of
@@ -123,6 +113,29 @@ info - Shows additional non-pattern information
should give OK before attempting download.
+emulate - Start floppy emulator
+
+ This will ask for a serial device and the format is different
+ depending on your system. For linux-flavors, it will usually
+ look like:
+ serial device> /dev/ttyS0
+
+ For windows, it will look something like:
+ serial device> COM1
+
+ After entering a serial device, the program will go into
+ floppy emulation mode.
+
+ You can exit this mode by sending a SIGINT, which is usually
+ Ctrl+C on most systems.
+
+ While in this mode, you can use the knitting machine to save
+ or load data into program memory, which can first be build
+ using add or read using read.
+
+ After saving from the machine you can keep it with write.
+
+
quit - Self explanatory
Go outside and enjoy the weather
View
Binary file not shown.
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit af4edb1

Please sign in to comment.