Got rid of POSIX warnings and re-enabled strip in the makefile for now
This commit is contained in:
@@ -7,7 +7,7 @@ DFLAGS=
|
|||||||
|
|
||||||
desktopcc:
|
desktopcc:
|
||||||
cc -std=c89 -Os -o $(PROJNAME) $(CFILES) $(DFLAGS)
|
cc -std=c89 -Os -o $(PROJNAME) $(CFILES) $(DFLAGS)
|
||||||
#strip $(PROJNAME)
|
strip $(PROJNAME)
|
||||||
|
|
||||||
tcc:
|
tcc:
|
||||||
tcc -std=c89 -o $(PROJNAME) $(CFILES) $(DFLAGS)
|
tcc -std=c89 -o $(PROJNAME) $(CFILES) $(DFLAGS)
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ enum EquiErrors {
|
|||||||
/* Error reporting method */
|
/* Error reporting method */
|
||||||
void trapout(errcode) {
|
void trapout(errcode) {
|
||||||
if(errcode > 0) {
|
if(errcode > 0) {
|
||||||
fprintf(stderr, "Error %d at 0x%x (instruction %c): ", errcode, ram.pc, ram.cmdbuf[ram.pc]);
|
fprintf(stderr, "\nError %d at 0x%x (instruction %c): ", errcode, ram.pc, ram.cmdbuf[ram.pc]);
|
||||||
switch(errcode) {
|
switch(errcode) {
|
||||||
case STACK_OVERFLOW:
|
case STACK_OVERFLOW:
|
||||||
cerr("Stack overflow\n");
|
cerr("Stack overflow\n");
|
||||||
@@ -299,7 +299,7 @@ ushort crc16(const uchar* data_p, uchar length) {
|
|||||||
/* persistent operation handler */
|
/* persistent operation handler */
|
||||||
|
|
||||||
ushort persistOp(maddr, dataLen, adl, adh, isWrite) {
|
ushort persistOp(maddr, dataLen, adl, adh, isWrite) {
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main interpreter loop */
|
/* Main interpreter loop */
|
||||||
@@ -357,6 +357,7 @@ void equi_main_loop() {
|
|||||||
break;
|
break;
|
||||||
case CR:
|
case CR:
|
||||||
case LF:
|
case LF:
|
||||||
|
case '\t':
|
||||||
case ' ': /* all nops in interpretation mode */
|
case ' ': /* all nops in interpretation mode */
|
||||||
break;
|
break;
|
||||||
case INS_QUIT: /* gracefully quit the interpretation mode */
|
case INS_QUIT: /* gracefully quit the interpretation mode */
|
||||||
@@ -545,8 +546,8 @@ int main(int argc, char* argv[]) {
|
|||||||
ram.pc = ram.ibp = 65535U;
|
ram.pc = ram.ibp = 65535U;
|
||||||
|
|
||||||
printf("Welcome to Equi v" EQUI_VER " by Luxferre, 2022\n\nCLT: 0x%X (%d bytes)\nGPD: 0x%X (%d bytes)\nCommand buffer: 0x%X (%d bytes)\nEqui ready\n\n",
|
printf("Welcome to Equi v" EQUI_VER " by Luxferre, 2022\n\nCLT: 0x%X (%d bytes)\nGPD: 0x%X (%d bytes)\nCommand buffer: 0x%X (%d bytes)\nEqui ready\n\n",
|
||||||
(uchar *)&ram.clt - (uchar *)&ram.main_stack,
|
(unsigned int) ((uchar *)&ram.clt - (uchar *)&ram.main_stack),
|
||||||
(uchar *)&ram.gpd - (uchar *)&ram.clt,
|
(unsigned int) ((uchar *)&ram.gpd - (uchar *)&ram.clt),
|
||||||
ram.gpd_start,
|
ram.gpd_start,
|
||||||
ram.cmd_start - ram.gpd_start,
|
ram.cmd_start - ram.gpd_start,
|
||||||
ram.cmd_start, ram.cmd_size);
|
ram.cmd_start, ram.cmd_size);
|
||||||
|
|||||||
Reference in New Issue
Block a user