Compiling source code


Author Message
Jimbo

Newbie

Joined: 20/06/2011
Location: Australia
Posts: 8
Posted: 09:47am 24 Jun 2011      

Hi,

I have had the same problem.

I downloaded the source code from the Web Page, and am trying to compile with MPLAB version 8.70, and MPLAB C32 Lite Version 1.12. I have tried all versions from V2.2 to V2.4, however I receive compile errors concerning the following two functions.

/* BSD library functions */
int strcasecmp (const char *s1, const char *s2) and
int strncasecmp (const char *s1, const char *s2, size_t n)

I notice that these functions are not included in the MPLAB C32 pic32-libs\string.h file, but are infact defined in the pic32-libs\lega-c\string.h file. So ultimately my build fails with a unresolved reference for these functions.

I have overcome the problem, by adding my own implementation for these two functions to the source code (See attached file), but thought there might be an easier way. Compiler option or something to use these lega-c paths and libs instead.

Any suggestions or comments would be appreciated.

2011-06-24_192943_BSDFunctions.zip

In the mean time, I have made a few minor changes to the firmware.

1) I have implemented Graphics Characters for CHR$(128) to CHR$(191) this give compatability for the TRS-80 / System-80 Basic Character set.

2) I added a few extra alias for some of the existing command. Again to give better compatability with the TRS-80 / System-80, (SET,RESET,POINT)

3) I extended the keyboard scanning to detect and report some of the PS/2 Extended key codes, (i.e. for the Arrorw keys etc)

4) I changed the way the cursor was implemented, so it was possible to display the cursor under a character, and not instead of.

5) I also wanted to be able to flash the screen very quickly, so I extended the CLS command to take an optional argument. 'CLS 1' for fill with White, and 'CLS 2' to invert the screen.

6) I added Bitwise Left and Right Shift operators (1 << 2) ==4 and (4 >> 2) == 1

7) And lastly I could not resist after I saw it listed here, I changed the prompt to match the TRS-80/SYSTEM80

READY
>_

See attached screen shots.


Regards

Jimbo.



Now the inverted video.