[Coco] wanting to patch HPUT routine... (ping RG!)

Robert Gault robert.gault at worldnet.att.net
Mon Aug 17 07:37:24 EDT 2009


You have shown that HPUT is faster than HDRAW, no surprise. You probably 
won't find any method for significantly increasing the speed of HPUT but 
that is not really what you want. You would seem to want a method for 
speeding up the movement of the arrow cursor in Color Fog. Most of the 
code in the HPUT routine is there to handle generic placement of buffer 
content on the screen. The coordinates may be inverted, they may be out 
of bounds, the buffer coords may not match the HPUT coords, @ syntax 
might be used, the HSCREEN mode must be tested, etc. But cursor movement 
is a specific task and many of the HPUT tests could be bypassed as they 
are not needed.

You could try writing an ml routine that emulates HPUT but skips tests 
that are not needed for the Color Fog cursor routine. Theoretically you 
could remove a good chunk of code and still have a functioning HPUT. The 
problem would be where to put your own code in memory, load it with 
needed data via Color Fog, and interface it with the ROM code needed to 
access the graphics and buffer memory.



More information about the Coco mailing list