//-----------------------------------------------------------
//
//             Commodore 64 kernal definitions
//
//
// Author: Mattias Hansson
// Copyright (c) : 2025 Mattias Hansson
// License: GNU LGPL 2
// Language: 65CM v0.6+
// Dependencies:
// Target: Commodore 64
//
// Purpose: Define accessor constants to various kernal
//          routines in the C64.
//-----------------------------------------------------------

#IFNDEF __C64KERNAL
#DEFINE __C64KERNAL = 1

  WORD CONST CINT         = $FF81
  WORD CONST IOINIT       = $FF84
  WORD CONST RAMTAS       = $FF87
  WORD CONST RESTOR       = $FF8A
  WORD CONST VECTOR       = $FF8D
  WORD CONST SETMSG       = $FF90
  WORD CONST SECOND       = $FF93
  WORD CONST TKSA         = $FF96
  WORD CONST MEMTOP       = $FF99
  WORD CONST MEMBOT       = $FF9C
  WORD CONST SCNKEY       = $FF9F
  WORD CONST SETTMO       = $FFA2
  WORD CONST ACPTR        = $FFA5
  WORD CONST CIOUT        = $FFA8
  WORD CONST UNTLK        = $FFAB
  WORD CONST UNLSN        = $FFAE
  WORD CONST LISTEN       = $FFB1
  WORD CONST TALK         = $FFB4
  WORD CONST READST       = $FFB7
  WORD CONST SETLFS       = $FFBA
  WORD CONST SETNAM       = $FFBD
  WORD CONST OPEN         = $FFC0
  WORD CONST CLOSE        = $FFC3
  WORD CONST LOAD         = $FFD5
  WORD CONST SAVE         = $FFD8
  WORD CONST SETTIM       = $FFDB
  WORD CONST RDTIM        = $FFDE
  WORD CONST CLRSCR       = $E544     // Clear the screen
  WORD CONST KBDREAD      = $E5B4     // Get Character From Keyboard Buffer
  WORD CONST NMIEXIT      = $FEBC
  WORD CONST UPDCRAMPTR   = $EA24     // Update color ram pointer

#IFEND