[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VTAB Is Slow?



    Was Steve Wozniak written $FBC1 routine himself?  Didn't he think to use 
a table rather than a routine?  Think of Line 0 through 23 to be translated 
into $400 through $7D0.  If you store $400 through $7D0 in a table, table 
may be faster than a routine.  A table has 48 bytes length.  It should be 
stored in $FBC1 to replace the routine.  Move another routine somewhere to 
give $FBC1 extra 24 bytes length to be total 48 byes length.  Didn't you 
know this routine has 24 byte length?
    This routine spends approximately 35-38 cycle clocks.  Are you going to 
use only three instructions like inx, inx, lda fbc1,x?  It spends 9 cycle 
clocks.  It is faster.
    Why do many assembly programmers claim that loading / saving data from / 
into memory is always slow than register directly?  What if routine with 
about 15 instructions process register directly is slow than memory?
    It may be the point why loading / saving from / into memory is important 
for graphic if you want to load more than 20 images from $1000 through $1FFF 
into $2000-$3FFF for smoother animation.

Bryan Parkoff