[time-nuts] Porting Lady Heather

Mark Sims holrum at hotmail.com
Tue Jan 5 05:16:05 UTC 2010


Yeah,  rightey-oh  we got flow charts,  gantt charts,  pi charts,  tart charts,  all with the circles and the arrows and the paragraphs on the back  explain' what each is all about...

The significance of the pickle boils down to reading the comments at the start of the heather.cpp file pertaining to system dependencies.   Then search the code for "def DOS" and "def WINDOWS".

At a minimum you need kbhit() and getch() for the keyboard.   serial_data_available(),  get_serial_char(),  sendout() for the com port.  dot() and vidstr() for the screen output,  some code to initialize the serial port and screen,  and you're off and rolling.

For performance you can add a real line() routine and erase_area().  For prettiness,  a filled_circle() routine.  And it really helps to be able to render the screen to a background buffer that is moved to the display with refresh_page().   

It also helps to support a couple of different font sizes (like 8x8, 8x12, 8x14, 8x16)...   probably 8x12 or 8x14 if you only do one font (there are font files in the package).  And it's nice to be able to change the window/screen size.

A get_pixel() routine for doing screen dumps (the program uses a max of 16 colors).  The ability to set/get the system time.  For temperature control the ability to diddle modem control signals and read a millisecond-ish counter.  For silliness,  the ability to play a .WAV file.



---------------------
Do you have a high-level schematic of the code in design form as it's
really just a coding exercise from that onto another platform or into
a form that would work cross-platform 		 	   		  
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/171222984/direct/01/


More information about the Time-nuts_lists.febo.com mailing list