KERNAL
Encyclopedia : K : KE : KER : KERNAL
- This article is about Commodore's 8-bit OS software. For the general OS core concept, see kernel (computer science).
The KERNAL was initially written for the Commodore PET by John Feagans, who introduced the idea of separating the BASIC routines from the operating system. It was further developed by several people, notably Robert Russell added many of the features for the VIC-20 and the C64.
Example of use
A simple, yet characteristic, example of applying the KERNAL is given by the following 6502 assembly language subroutine (written in ca65 assembler format/syntax):
MSG: .ASCIIZ "" LDX #$F3 ; store length of string as two's complement value in x register @LP: LDA MSG-$F3,X ; load character JSR $FFD2 ; call CHROUT in order to output char to current output device (e.g., screen) INX ; next character BNE @LP ; loop back to load new char until whole string done, and then ... RTS ; ... return from the subroutineThis code stub employs the
CHROUT routine, found at address $FFD2 (65490), to send a text string to the default output device (e.g., the display screen).About the misspelling
The KERNAL was known as kernel[#endnote_kernel-def] inside of Commodore since the PET days, but in 1980 Robert Russell misspelled the word in his notebooks forming the word kernal. When Commodore technical writers Neil Harris and Andy Finkel collected Russells notes and used them as the basis for the VIC-20 programmer's manual, the misspelling followed them along and stuck.[#endnote_kernal-origin]
According to early Commodore 'myth' and reported by writer/programmer Jim Butterfield among others, the word KERNAL is an acronym (or maybe more likely, a backronym) standing for Keyboard Entry Read, Network, And Link, which in fact makes good sense considering its role. Berkeley Softworks later used it when naming the core routines of its GUI OS for 8-bit home computers: the GEOS KERNAL.
The (completely different) OS core in the 16/32-bit Commodore Amiga series was called the Amiga ROM Kernel, i.e. using the correct spelling of kernel.
Notes
- ↑ See On The Edge: The Spectacular Rise and Fall of Commodore, page 202.
- ↑ The kernel is the most fundamental part of a program, typically an operating system, that resides in memory at all times and provides the basic services. It is the part of the operating system that is closest to the machine and may activate the hardware directly or interface to another software layer that drives the hardware
References
- Bagnall, Brian: On The Edge: The Spectacular Rise and Fall of Commodore, ISBN 0-9738649-0-7
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
