Changeset 4422c8e in buchla-68k for ram/sedump.c


Ignore:
Timestamp:
07/14/2017 02:46:19 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
d21fc6f
Parents:
add86dd
Message:

No more pointer-int conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/sedump.c

    radd86dd r4422c8e  
    1010int8_t  *A6PTR = 0L;            /* traceback a6 starting address */
    1111int8_t  *A7PTR = 0L;            /* traceback a7 starting address */
    12 int8_t  *A7TOP = 0x000FFFFFL;   /* traceback stack top */
     12int8_t  *A7TOP = (int8_t *)0x000FFFFFL;
     13                                /* traceback stack top */
    1314
    1415int16_t SCnumv = 0;             /* voice for SCvoice()  to dump (0..11) */
     
    406407
    407408                printf("Stack dump:  $%08lX to $%08lX\n\n", A7PTR, A7TOP);
    408                 mdump(A7PTR, A7TOP, A7PTR);
     409                mdump(A7PTR, A7TOP, (int32_t)A7PTR);
    409410                printf("\n\n");
    410411                printf("Stack traceback:  from A6 = $%08lX\n\n", A6PTR);
     
    423424        while (cura6) {
    424425
    425                 olda6 = *cura6;
     426                olda6 = (int32_t *)*cura6;
    426427
    427428                printf("$%08lX:  $%08lX  $%08lX\n",
Note: See TracChangeset for help on using the changeset viewer.