BASIC Header

From Doors CS, Doors CSE, and Doors CE Wiki
Jump to: navigation, search

You are here: Developers' SDK >> BASIC Header

All Doors CS versions to date, including Doors CS 7, automatically recognize all BASIC programs as BASIC programs. However, if you want your programs to be a bit more spiffy, Doors CS offers the ability to add icons and descriptions to your program, as well as automatically associating subprograms with your main program so that they can be automatically unarchived before running and re-archived afterwards by Doors CS. Finally, you can specify that certain BASIC programs, like support subprograms, be hidden from the Doors CS desktop. The header formats below explain each of these features. Please note that you can preface any header starting in ::D... with a description line (::"DESCRIPTION...)

Icons

You can get more info about how icons are made here. If you want an automated program to let you draw 8x8 or 16x16 icons that will give you the hex code, I recommend TIFreak's Icon Generator. If you want a program that can also add a description, set up the rest of the header, and create the program for you, try Skylite Icon Suite

8x8 Icon

::DCS
:"16-char_hex_icon
:Program code

8x8 Icon + Subprograms

::DCS
:"16-char_hex_icon
::A
:ZSUB1
:ZSUB2
:SUBPRG5
::
:Program code

16x16 Icon

::DCS6
:"64-char_hex_icon
:Program code

16x16 Icon + Subprograms

::DCS6
:"64-char_hex_icon
::A
:ZSUB1
:ZSUB2
:SUBPRG5
::
:Program code

Other Functions

Ignore Program

:rand
:Program code

or

:Ans
:Program code

"Hybrid" MOS-DCS Header

::"DESCRIPTION
::"64-CHAR 16x16 ICON

or

::
::"64-CHAR 16x16 ICON