1
/* gtktiemu - a TI89/92/92+ emulator
2
* (c) Copyright 2000-2001, Romain Lievin and Thomas Corvazier
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
TI hardware management (ASIC).
21
-> screen, keyboard, linkport, timers.
31
//#include "interface.h"
40
#include "callbacks.h"
43
int init_int_tab_offset;
45
int cycle_instr = 640;
49
/* This function should be called everytime the counter increases */
50
void update_hardware()
52
/* Auto-int 5: timer */
53
if(timer_value++ == 0)
55
timer_value = timer_init;
56
specialflags |= SPCFLAG_INT;
63
/* Auto-int 1: 1/4 of timer rate */
66
specialflags |= SPCFLAG_INT;
70
/* Auto-int 2: keyboard scan */
76
if(linkport_checkread())
82
specialflags |= SPCFLAG_INT;
86
/* LCD is refreshed every 16th time */
91
if(lc_timeout++ >= TO_VALUE)
93
DISPLAY("Warning: internal link timeout !!!\n");
109
A ROM image must have been loaded before calling this function.
123
void reset_hardware()
128
void exit_hardware(void)