Line 7... |
Line 7... |
* Please, notify me, if you make any changes to this file *
|
* Please, notify me, if you make any changes to this file *
|
* *
|
* *
|
* Adapted for the T48 uController project, 2004 by Arnim Laeuger *
|
* Adapted for the T48 uController project, 2004 by Arnim Laeuger *
|
* See http://www.opencores.org/projects.cgi/web/t48/overview *
|
* See http://www.opencores.org/projects.cgi/web/t48/overview *
|
* *
|
* *
|
* $Id: i8039.c,v 1.4 2004-04-24 11:32:56 arniml Exp $
|
* $Id: i8039.c,v 1.5 2004-05-01 17:20:42 arniml Exp $
|
* *
|
* *
|
* **** Change Log **** *
|
* **** Change Log **** *
|
* *
|
* *
|
* TLP (19-Jun-2001) *
|
* TLP (19-Jun-2001) *
|
* - Changed Ports 1 and 2 to quasi bidirectional output latched ports *
|
* - Changed Ports 1 and 2 to quasi bidirectional output latched ports *
|
Line 482... |
Line 482... |
static void rlc_a(void) { UINT8 i=M_Cy; if (R.A & 0x80) SET(C_FLAG); else CLR(C_FLAG); R.A <<= 1; if (i) R.A |= 0x01; else R.A &= 0xfe; }
|
static void rlc_a(void) { UINT8 i=M_Cy; if (R.A & 0x80) SET(C_FLAG); else CLR(C_FLAG); R.A <<= 1; if (i) R.A |= 0x01; else R.A &= 0xfe; }
|
static void rr_a(void) { UINT8 i=R.A & 1; R.A >>= 1; if (i) R.A |= 0x80; else R.A &= 0x7f; }
|
static void rr_a(void) { UINT8 i=R.A & 1; R.A >>= 1; if (i) R.A |= 0x80; else R.A &= 0x7f; }
|
/* NS990113 */
|
/* NS990113 */
|
static void rrc_a(void) { UINT8 i=M_Cy; if (R.A & 1) SET(C_FLAG); else CLR(C_FLAG); R.A >>= 1; if (i) R.A |= 0x80; else R.A &= 0x7f; }
|
static void rrc_a(void) { UINT8 i=M_Cy; if (R.A & 1) SET(C_FLAG); else CLR(C_FLAG); R.A >>= 1; if (i) R.A |= 0x80; else R.A &= 0x7f; }
|
static void sel_mb0(void) { R.A11 = 0; R.A11ff = 0; }
|
static void sel_mb0(void) { R.A11 = 0; R.A11ff = 0; }
|
static void sel_mb1(void) { R.A11ff = 0x800; if (R.irq_executing == I8039_NO_INT) R.A11 = 0x800; }
|
static void sel_mb1(void) { R.A11ff = 0x800; R.A11 = 0x800; }
|
static void sel_rb0(void) { CLR(B_FLAG); regPTR = 0; }
|
static void sel_rb0(void) { CLR(B_FLAG); regPTR = 0; }
|
static void sel_rb1(void) { SET(B_FLAG); regPTR = 24; }
|
static void sel_rb1(void) { SET(B_FLAG); regPTR = 24; }
|
static void stop_tcnt(void) { R.timerON = R.countON = 0; }
|
static void stop_tcnt(void) { R.timerON = R.countON = 0; }
|
static void strt_cnt(void) { R.countON = 1; R.timerON = 0; Old_T1 = test_r(1); } /* NS990113 */
|
static void strt_cnt(void) { R.countON = 1; R.timerON = 0; Old_T1 = test_r(1); } /* NS990113 */
|
static void strt_t(void) { R.timerON = 1; R.countON = 0; R.masterClock = 0; } /* NS990113 */
|
static void strt_t(void) { R.timerON = 1; R.countON = 0; R.masterClock = 0; } /* NS990113 */
|