User Tools

Site Tools


base:dysp_cycle_table

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
base:dysp_cycle_table [2016-04-26 15:23]
compyx
base:dysp_cycle_table [2016-04-26 15:47]
compyx
Line 104: Line 104:
 06          01    02    04     07 06          01    02    04     07
 </​code>​ </​code>​
 +
 +=== loop timing table ===
  
 Using this result, we can use the '​sprite enable'​ table values as an index into the cycles table to get the Using this result, we can use the '​sprite enable'​ table values as an index into the cycles table to get the
Line 118: Line 120:
 </​code>​ </​code>​
  
 +==== Done ====
 +
 +And there you have it, we now have a D.Y.S.P. with flexible Y-positions. Naturally all this calculating eats cycles, which is why my code uses a lot of unrolled loops. ​
 +
 +===== The Code =====
  
 +Finally, the code. It also contains a little user interface, allowing the user to change the DYSP's movements with a joystick in port 2.
  
-==== The Code ==== 
 <code 6502tasm>​ <code 6502tasm>​
 ; vim: set et ts=8 sw=8 sts=8 syntax=64tass : ; vim: set et ts=8 sw=8 sts=8 syntax=64tass :
base/dysp_cycle_table.txt ยท Last modified: 2016-04-26 15:47 by compyx