//-------------------------------------------------------
//
//                    C64 START LIB
//
// Author: Mattias Hansson
// License: LGPL
// Compiler version: c65cm, v.04+
//
// Purpose:
//   When loaded into CBM memory this source generates
//   a valid basic line that starts the program.
//
// Note: Include this first before any own written code,
//       and other libraries.
//-------------------------------------------------------

ORIGIN $0801

#IFNDEF __C64_BASIC_START
#DEFINE __C64_BASIC_START = 1
#DEFINE MACHINE_C64 = 1

ASM
          !to "main.bin", cbm	; The output file definition (add CBM starting address)
          !sl "main.sym"      ; save the symbols to separate file
          !cpu 6502		; The processor definition
          ; basic line "0 sys 2064"
          !8 $0c, $08, $00, $00, $9e, $20, $32, $30, $36, $34, $0, $0, $0

ENDASM

ORIGIN $0810

#IFEND
