OpenCores
URL https://opencores.org/ocsvn/t48/t48/trunk

Subversion Repositories t48

[/] [t48/] [tags/] [rel_0_4_beta/] [sw/] [i8039emu/] [i8039.c] - Diff between revs 124 and 127

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 124 Rev 127
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.6 2004-07-03 14:38:11 arniml Exp $
 * $Id: i8039.c,v 1.7 2004-07-04 12:06:53 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 656... Line 656...
{
{
  int i;
  int i;
 
 
  printf("  | %04X  %02X  %02X %02X", (UINT32)R.PC.w.l, (UINT32)R.A, (UINT32)(R.SP >> 1), (UINT32)R.PSW);
  printf("  | %04X  %02X  %02X %02X", (UINT32)R.PC.w.l, (UINT32)R.A, (UINT32)(R.SP >> 1), (UINT32)R.PSW);
  printf("  %02X  %X  %02X %02X",     (UINT32)R.bus, (UINT32)R.f1, (UINT32)R.P1, (UINT32)R.P2);
  printf("  %02X  %X  %02X %02X",     (UINT32)R.bus, (UINT32)R.f1, (UINT32)R.P1, (UINT32)R.P2);
  printf(" %X  ",                     (UINT32)(R.A11 >> 11));
  printf(" %X  ",                     (UINT32)(R.A11ff >> 11));
 
 
  for (i = 0; i < 256; i++)
  for (i = 0; i < 256; i++)
    printf(" %02X", R.RAM[i]);
    printf(" %02X", R.RAM[i]);
 
 
  printf("\n");
  printf("\n");
Line 762... Line 762...
        if (R.countON)  /* NS990113 */
        if (R.countON)  /* NS990113 */
        {
        {
            for ( ; inst_cycles > 0; inst_cycles-- )
            for ( ; inst_cycles > 0; inst_cycles-- )
            {
            {
                T1 = test_r(1);
                T1 = test_r(1);
                if (POSITIVE_EDGE_T1)
                if (NEGATIVE_EDGE_T1)
                {
                {
                    R.timer++;
                    R.timer++;
                    if (R.timer == 0) {
                    if (R.timer == 0) {
                        count = Timer_IRQ();    /* Handle Counter IRQ */
                        count = Timer_IRQ();    /* Handle Counter IRQ */
                        i8039_ICount -= count;
                        i8039_ICount -= count;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.