support for assert.h in GEOS, conio bugfixes

git-svn-id: svn://svn.cc65.org/cc65/trunk@1094 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst
2001-10-27 23:04:18 +00:00
parent 8ce6c9bcac
commit 5f87dcea95
6 changed files with 37 additions and 8 deletions

View File

@@ -10,7 +10,7 @@
%.o: %.s
@$(AS) -o $@ $(AFLAGS) $<
C_OBJS = abort.o perror.o
C_OBJS = _afailed.o abort.o perror.o
S_OBJS = copydata.o memcpy.o memset.o rand.o
all: $(C_OBJS) $(S_OBJS)

View File

@@ -0,0 +1,31 @@
/*
* _afailed.c
*
* Maciej 'YTM/Elysium' Witkowiak 28.10.2001
*/
#include <stdio.h>
#include <stdlib.h>
#include <geos.h>
void _afailed (char* file, unsigned line)
{
drawWindow.top = 0;
drawWindow.left = 0;
drawWindow.bot = 15;
drawWindow.right = 150;
dispBufferOn = ST_WR_FORE|ST_WR_BACK;
SetPattern(0);
Rectangle();
FrameRectangle(0xff);
PutString(CBOLDON "file: ", 10, 10);
PutString(file, 10, r11);
PutString(CBOLDON " line: ", 10, r11);
PutDecimal(0, line, 10, r11);
DlgBoxOk(CBOLDON "ASSERTION FAILED", "PROGRAM TERMINATED" CPLAINTEXT);
exit (2);
}

View File

@@ -4,7 +4,6 @@
;
; 27.10.2001
SCREEN_PTR = $D1 ; Pointer to current char in text screen
cursor_x = $D3 ; Cursor column (word)
cursor_y = $D5 ; Cursor row
cursor_flag = $D6 ; cursor on/off (0-off)

View File

@@ -9,7 +9,6 @@
.export _kbhit
.import return0, return1
.include "../inc/jumptab.inc"
.include "../inc/geossym.inc"
_kbhit:

View File

@@ -17,7 +17,7 @@ _wherex: lda cursor_x
sta tmp1
lda cursor_x+1
sta tmp2
lda #tmp1
ldx #tmp1
ldy #3
jsr DShiftRight
lda tmp1