swh:1:snp:63e2d142f91fc04ec33789d9d7bb85f3bef72e05
Raw File
Tip revision: 66d8e606a8d996ded60bc81d5edf319142a5fad9 authored by Ron Burkey on 04 October 2021, 11:49:55 UTC
Merge branch 'master' of https://github.com/virtualagc/virtualagc
Tip revision: 66d8e60
KBD.cpp
/****************************************************************************
 * KBD - DSKY KEYBOARD subsystem
 *
 * AUTHOR: John Pultorak
 * DATE: 9/22/01
 * FILE: KBD.cpp
 *
 * NOTES: see header file.
 *
 *****************************************************************************
 */
#include "KBD.h"
#include "INT.h"
// DSKY keyboard
keyInType KBD::kbd = KEYIN_NONE; // latches the last key entry from the DSKY
void
KBD::keypress(keyInType c)
{
  // latch the keycode
  kbd = c;
  // generate KEYRUPT interrupt
  INT::rupt[KEYRUPT] = 1;
}
back to top