z80:Directives:SHELLHEADER

From Learn @ Cemetech
Jump to navigationJump to search

Generates a header for popular calculator shells.

The directive generates code (and inserts it at the current point) according to the list.

   /*Ion*/
     ret
     jr nc,Start
     .byte "Description",0
   Start:
   /*MirageOS*/
     ret
     .byte 1
     ; 30 bytes for 15x15 icon.
     .byte "Description",0
   /*Venus*/
     .byte $E7,$39,$5F,$5B,$56,$3F,$00
     jr nc,Start
     .byte "Description",0
     ; If specified, 32 bytes for 16x16 icon.
   Start:

You still need to specify the start origin yourself. You will also need to manually add the AsmPrgm header for TI-83 Plus programs. The directive will report a warning if there is not two bytes output before this directive (TI-83 Plus) or if data is output before this directive at all (TI-83).

Syntax

   .ionheader "Description"
   .mirageosheader "Description" [, "Icon.gif"]
   .venusheader "Description" [, "Icon.gif"]
   .doorscsheader ["Icon.gif"]


Allowed inputs

Uses

See Also