On Sun, Jan 9, 2022 at 11:54 PM TK Chia <[email protected]> wrote: > > Reference: > > https://sourceforge.net/p/simple-senet/code/HEAD/tree/trunk/src/senet.c#l138 > > > > That's an interesting bug. Does it still do that if you swap the > > comparisons? That would make more sense anyway, because a program > > should not check for a value outside the array bounds, and if sq is > > not less than 30, then board[sq] is out of bounds. > > If I swap the comparisons, the gcc-ia16 compiled program works correctly. >
Thanks! I've fixed it in source and checked the change into svn on SourceForge: https://sourceforge.net/p/simple-senet/code/HEAD/tree/trunk/src/senet.c#l138 Can you also share your command line to build with IA-16 GCC and Libi86? I'm planning to remove the Makefile and instead create a BUILD.BAT file that builds everything from source. It's a small project; it doesn't need a Makefile. A simple BAT file will do the job just fine and will be easier for others to read. Sounds like that was the only change needed? Let me know and I'll make an updated "1.1" (or maybe "1.0A"?) release with this source change. Jim _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
