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 revisionPrevious revision
Next revision
Previous revision
base:dysp_cycle_table [2016-04-26 15:23] compyxbase:dysp_cycle_table [2016-04-26 15:47] (current) 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.1461677029.txt.gz · Last modified: 2016-04-26 15:23 by compyx