Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

UNIX Command line programming

22 views
Skip to first unread message

ict@ccess

unread,
Feb 20, 2012, 12:36:48 AM2/20/12
to
I have completed a program that allows you to run CMD programs by
entering just its filename at the applesoft prompt. CMD programs have
the filetype CMD and are programmed to run at a fixed address. These
are not commands that are launched at $2000 and inserted between
Basic.system and its buffers. These CMD programs are meant to be run
once and then freed up from memory, ready for another command.
Although if you typed the same command twice, it does not get reloaded
into memory, since it is already in memory, which saves time and disk
access. Therefore, unlimited commands can be created and are only
limited by disk space.

Enough space is made between Basic.system and its buffers for the
driver and room for the command which should start at $9000. This
gives a maximum command size of $A00 before running into Basic.system.

Commands are stored in the CMDS folder, obviously. And can be run
even if you are 20 levels deep in any folder on your mounted volume.

These commands are not the same as installed commands. There is no
check for syntax or use of Fbits/Pbits and have nothing to do with
Basic.system. Most commands can be used independantly, but some,
especially the ones with filenames need to have the driver installed.

Commands with filenames create the file in the current directory you
are in


Some immediate commands that have already been created and modified
are:

Alias - lets you select from a list of System programs (Appleworks,
etc)
Buzz - alternate bell - useless as a disk command
CatFAT - catalogs a FAT16 volume
CatHFS - catalogs an HFS volume
Check.disk - checks disk for bad blocks
Check.pgrm - checks aplsoft program for syntax
Compress/decompress (filename) - graphics compression
Copy - can copy any file including Sparse files and IIGS forked files
Crunch.line - compresses multiple aplsoft lines
Crunch.var - reduces variable names to 1 and 2 characters
Dir - alternate CATALOG function with mousetext characters
Edit (filename) - creates a file if one does not exist and allows you
to quickly make text notes within the current directory
encrypt/decrypt (filename) - can encrypt a file with a key (creates a
new encrypted file and leaves the original untouched)
Filetype - change File type and Aux type
Find (filename) - can find any file or folder very quickly and
displays all occurrences
Grep - can find any sequence of Hex bytes or text in any file on the
current volume
Help (filename) - searches for help on a specific file which should be
stored in a
HELPDIR folder in the current directory you are in
ID - Identifies your computer
List.master - formats an aplsoft listing
Load/Save - used more for in an an aplsoft or binary program where you
need to load fonts, graphics, run another aplsoft program ... etc
Navigate - displays a mousetext window to allow you to quickly
navigate to anywhere, including other drives
Online - displays all online volumes
Pop - backs up one directory
ShowVAR (filename) - displays the values of all variables in the VAR
file or in memory
Sleep - (IIGS only) blanks screen including borders and waits for
keypress
strip.rems - removes all REMS from an aplsoft program
Textcomp - compresses a text file by creating pointers to words from a
library
Time - displays date and Time
Tokens - displays applesoft tokens
Type (filename) - can display applesoft listings, Mouse text screens,
unlimited size text files, APLworks and all other files are listed in
one of 3 formats (as ML listing, Hex dump or ASCII text)
Undelete - allows you to undelete a file within the current directory
Unnew - fixes an accidentally erased applesoft program in memory
View (filename) - can view most graphics modes - GR, DGR, HGR, DHGR,
SHGR
ViewCP - view many of the IIGS compressed screen modes. SHR, APF,
DreamGraphics
View32 - display 3200 color mode pictures
Xref - cross reference variables for the applesoft program that is in
memory

NOTE:
Command files can be renamed to anything except a few applesoft tokens
have been
filtered out (like HOME and LIST) and Basic.system will recognize its
commands before
checking the Cmds folder. When I have completed my version of
Basic.system, then
Basic.system commands may also be used

Some commands can be run from applesoft but require & - commandname
(The dash is used)

Notice that all commands leave basic.system intact which saves from
jumping back and forth in to different programs

Some commands are IIGS specific but most should be able to run on an
unenhanced IIe with
80 col card



Other programs I am creating:

An OS similar to Microdot, but much more refined, compressed and a bit
more powerful.
With the ability to add on enhanced applesoft routines, mouse control,
drivers for
printers/RAM/Modem, better buffer management, better access to the
entire hard drive
replaced useless text file routines with much more efficient way of
accessing text files

Enhanced applesoft - About 50 applesoft commands that save tons of
space from the
applesoft equivalent and much faster. Cuts the size of an applesoft
program in half and
saves a ton of space with with the use of variables as well
i.e. a common entry is A=A+1 shortened to &+A even better A%(x)=A%
(x)+1 to &+A%(x) -
saves 6 bytes and is much much faster

A full mouse text toolbox for menus, dialog boxes, buttons, windows
and have the use of
the mouse for selection (Mouse not needed but much better)

Web page viewer - only the basic commands are recognized and web
links; no tables, forms
or graphics

Notepad - can be used as a command but only with my OS and not with
Basic.system.
Features cut/copy/paste, find/replace, tabs, load and edit aplsoft
programs, block delete
(can delete a designated number of characters from the beginning or
ending of every line
- great for editing source files with addresses included), can be full
screen or
windowed, word wrap, insert/overwrite, keyboard shortcuts, Caps/
Numlock/scroll lights
work on enhanced keyboards (only on real IIGS)

Virtual Array for text strings - allows applesoft to read string
arrays much larger than
its memory limitations from the hard drive. Multiple Virtual Array
files can be created
and used at the same time

Block Editor - Much Much better for viewing, editing and navigating
the blocks on your
hard drive.


All of the following programs requires mousetext toolbox, Enhanced
Applesoft and my OS

System 8 Finder - mouse text windows for navigation and quick
selection or viewing text
and/or graphics files

Scientific Calculator and printer

Calendar - todo list, birthdays, holidays, appointments

Mousetext screen editor - creates full screen mousetext screens in
minutes

Mousetext Games - Cards (hearts, spades, bridge), Mousetext Star trek,
Master mind,
checkers, Text adventures, etc...


Quite a few programs are completed and a few of the larger, more
important programs are
about 90% finished. Less important programs, like games, have been
outlined and
mousetext characters created, but no programming yet.


Rob

Helping Applesoft play with the big boys

ict@ccess

unread,
Feb 20, 2012, 9:58:32 AM2/20/12
to
Not sure what happened with all the line breaks, copy and pasting from
Notepad <<bad>>
even better A%(x)=A%(x)+1 to &+A%(x) - saves 6 bytes and is much

D Finnigan

unread,
Feb 20, 2012, 4:30:29 PM2/20/12
to
ict@ccess wrote:
>
> Quite a few programs are completed and a few of the larger, more
> important programs are about 90% finished. Less important programs,
> like games, have been outlined and mousetext characters created, but
> no programming yet.
>

Sounds exciting!

Michael J. Mahon

unread,
Feb 20, 2012, 5:42:31 PM2/20/12
to
Wow--you've been busy!

-michael - NadaNet 3.1 and AppleCrate II: http://home.comcast.net/~mjmahon

ict@ccess

unread,
Feb 20, 2012, 10:43:55 PM2/20/12
to

> Wow--you've been busy!

So far, it has been about a 3 winter project. I do very little
programming when spring comes until late fall.

My goal is to see how much an 8 bit/64 kb/1 Mhz/32 Mb computer can
do. I only use the 80 column card, but I have not programmed AUX
memory yet, so I do not count it as being a 128 kb computer.

At the same time, I am wishing someone would build me a Carte Blanche
card that would do 640x400x256 colors, so I can have 48 lines of text
and 160 columns and more life-like graphics. This is still very
usable with an 8 bit machine.

By increasing the power of applesoft with enhanced routines has saved
a lot of memory and made programming much easier, and more can be done
with less code. There always was and has been too much duplication
with applesoft programs. Every program needed its own input routines,
and its own print-to-screen routines.

I must say, programming in hexadecimal, sure has changed the way I
look at things. I rarely programmed using an assembler, until lately
when some of the programs starting getting too large.

But now that I understand how to program, I am 20 years too late for
it to be any good. Now it's just a hobby.


Rob

Allowing Applesoft to play with the big boys

aiia...@gmail.com

unread,
Mar 1, 2012, 10:29:03 AM3/1/12
to
On Monday, February 20, 2012 2:42:31 PM UTC-8, mjm...@aol.com wrote:
> "ict@ccess" <gid...@sasktel.net> wrote:
> > Not sure what happened with all the line breaks, copy and pasting from
> > Notepad <<bad>>
> >
> >
> > I have completed a program that allows you to run CMD programs by
> > entering just its filename at the applesoft prompt.
>
> Wow--you've been busy!
>


ditto... looking forward to checking it out. With all those features and code to get it done, Sounds like a debugging nightmare!

sou
0 new messages