]> git.sur5r.net Git - cc65/blobdiff - libsrc/dbg/dbg.c
Replaced whole bunch for Makefiles with a single generic Makefile.
[cc65] / libsrc / dbg / dbg.c
index 81f6b696f8bc5edf71c34789bd2592297e0ea434..8090d73ddeb6465bce439b4f36d0f70c0be4e71c 100644 (file)
@@ -80,6 +80,12 @@ static char GetKeyUpdate (void);
 #    endif
 #  endif
 #endif
+#ifndef COLOR_BLACK
+#  define COLOR_BLACK   0
+#endif
+#ifndef COLOR_WHITE
+#  define COLOR_WHITE   1
+#endif
 
 /* Screen definitions */
 #if defined(__CBM610__)
@@ -98,10 +104,39 @@ static char GetKeyUpdate (void);
 #endif
 
 /* Replacement key definitions */
-#if defined(__APPLE2__)
+#if defined(__APPLE2__) || defined(__LYNX__) || defined(__SUPERVISION__)
 #  define CH_DEL        ('H' - 'A' + 1)         /* Ctrl+H */
 #endif
 
+/* Replacement char definitions */
+#ifndef CH_ULCORNER
+#  define CH_ULCORNER   '+'
+#endif
+#ifndef CH_URCORNER
+#  define CH_URCORNER   '+'
+#endif
+#ifndef CH_LLCORNER
+#  define CH_LLCORNER   '+'
+#endif
+#ifndef CH_LRCORNER
+#  define CH_LRCORNER   '+'
+#endif
+#ifndef CH_TTEE
+#  define CH_TTEE       '+'
+#endif
+#ifndef CH_LTEE
+#  define CH_LTEE       '+'
+#endif
+#ifndef CH_RTEE
+#  define CH_RTEE       '+'
+#endif
+#ifndef CH_BTEE
+#  define CH_BTEE       '+'
+#endif
+#ifndef CH_CROSS
+#  define CH_CROSS      '+'
+#endif
+
 /* Defines for opcodes */
 #define        OPC_BRK         0x00
 #define OPC_BPL                0x10
@@ -1310,7 +1345,7 @@ static void SingleStep (char StepInto)
            /* Be sure not to set the breakpoint twice if this is a jump to
             * the following instruction.
             */
-           Offs = *(signed char*)(brk_pc+1);
+            Offs = ((signed char*)brk_pc)[1];
            if (Offs) {
                DbgSetTmpBreak (brk_pc + Offs + 2);
            }