Got rid of POSIX warnings and re-enabled strip in the makefile for now

This commit is contained in:
Luxferre
2022-08-09 21:34:33 +03:00
parent 0be72ee3fd
commit aaf98b5dbb
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -129,7 +129,7 @@ enum EquiErrors {
/* Error reporting method */
void trapout(errcode) {
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) {
case STACK_OVERFLOW:
cerr("Stack overflow\n");
@@ -299,7 +299,7 @@ ushort crc16(const uchar* data_p, uchar length) {
/* persistent operation handler */
ushort persistOp(maddr, dataLen, adl, adh, isWrite) {
return 0;
}
/* Main interpreter loop */
@@ -357,6 +357,7 @@ void equi_main_loop() {
break;
case CR:
case LF:
case '\t':
case ' ': /* all nops in interpretation mode */
break;
case INS_QUIT: /* gracefully quit the interpretation mode */
@@ -545,8 +546,8 @@ int main(int argc, char* argv[]) {
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",
(uchar *)&ram.clt - (uchar *)&ram.main_stack,
(uchar *)&ram.gpd - (uchar *)&ram.clt,
(unsigned int) ((uchar *)&ram.clt - (uchar *)&ram.main_stack),
(unsigned int) ((uchar *)&ram.gpd - (uchar *)&ram.clt),
ram.gpd_start,
ram.cmd_start - ram.gpd_start,
ram.cmd_start, ram.cmd_size);