Files
ioccc/1990/dds
Landon Curt Noll f29b37e49a improve HTML menus, add social.html, prep for IOCCC28 winners
Prepare for the winners of **IOCCC28**.

> However these are not the 2024 droids you are looking for.  :-)

The HTML menu (both JavaScript and non-JavaScript) has been updated.

The `Status -> Rules and guidelines' have been replaced with two
separate menus `Status -> IOCCC rules` and `Status -> IOCCC guidelines`.

Added a new top level `social.html` page: built from a new `social.md`.

Sorted rules for building specific web pages in the top level `Makefile`.
Added `make social` to make the `social.html` page from `social.md`.

The `bin/gen-top-html.sh` now is able to process a argument of **social**
to process the new top level `social.html` page.

Changed `bin/gen-top-html.sh` VERSION from "2.0.0 2025-03-13"
to "2.0.1 2025-07-25".

Below `About -> Home page` a new `About -> IOCCC social media` menu item
as added.

Because the menu change touched every HTML file, we changed the general
copyright date range for HTML files from "1984-2024" to "1984-2025"
due to the extensive changes made for **IOCCC28**.

Those markdown files that were modified in 2025 had their copyright date
range also changed from "1984-2024" to "1984-2025".

Rebuilt tarballs and sitemap due to the extensive HTML rebuilding.

Ran `make update` to perform the above.
2025-07-26 13:06:29 -07:00
..
2023-09-09 06:17:06 -07:00
2023-07-06 21:49:38 -07:00

To build:

    make all

To use:

    ./dds

Try:

Give the following lines as input:

    OLD LANDER.BAS
    RUN

NOTE: this entry is probably one of the only times CAPS LOCK might be worth having (though still not useful enough to enable :-) ) as all input has to be UPPER CASE.

Judges' remarks:

Be sure not to run out of fuel!

Author's remarks:

This is the DDS-BASIC Interpreter (Version 1.00).

Immediate commands:

  • RUN
  • LIST
  • NEW
  • OLD filename
  • BYE
  • SAVE filename

Program commands:

  • variable names a to z
  • variables initialized to 0 on RUN
  • FOR var = exp TO exp
  • NEXT variable
  • GOSUB exp
  • RETURN
  • GOTO exp
  • IF exp THEN exp
  • INPUT variable
  • PRINT string
  • PRINT exp
  • var = exp
  • REM any text
  • END

Expressions (ranked by precedence):

  • Bracketed expressions
  • number (leading 0 for octal, 0x for hex, else decimal), variable
  • Unary -
  • * /
  • + -
  • = <>
  • > <
  • <= >=

(* and + are also used for boolean AND and boolean OR)

Boolean expressions evaluate to 0 for false and 1 for true.

Editing:

  • Line editor using line re-entry.
  • A line number with nothing following it, deletes the line.

Input format:

  • Free format positioning of tokens on the line.
  • No space is allowed before the line number.
  • Exactly one space is needed between the OLD or SAVE command and the filename.
  • ALL INPUT MUST BE UPPERCASE.

Limits:

  • Line numbers 1-10000
  • Line length 999 characters
  • FOR nesting 26
  • GOSUB 999 levels
  • Program Dynamically allocated
  • Expressions -32768 - 32767 for 16 bit machines, -2147483648 - 2147483647 for 32 bit machines

Error checking / error reports:

No error checking is performed. It might dump core if a syntax or semantic error is encountered.

Hosting Environment:

ANSI C, traditional K&R C or OSF ANDF ASCII or EBCIDIC character set 48K bytes memory.

The Speed of DDS-BASIC Interpreter (Version 1.00) relative to Microsoft Advanced BASIC 3.31 is approximately 60%.

The code size could be further reduced by doing ugly things like not declaring the return type of functions, not freeing memory, defining define, and joining lines. In its present 1536 character form the program is reasonably portable (it may fail to run in a tagged object architecture) and nicely formatted (it fits in an 80*25 screen).