pouët.net

Cordic demo 1k - The Oxygene Ring Odyssey by SinDiKat [web]

:::::::::::::::::::::::::::::::::::::::::::::::
:: Cordic demo 1k - The Oxygene Ring Odyssey ::
:::::::::::::::::::::::::::::::::::::::::::::::

 Set of simple color effects based on color
 rings controlled by note pitch from the music
 Multicolor graphics mode (160x200) is used

    Code: Busy soft
    Music: Noro soft
    Create: 10.02.2026
    Release: FOReVER:2026

    Original music: Oxygene IV
    Composed by: Jean Michel Jarre

 The processed concentric rings are drawed by using
 simplified CORDIC algoritm for computing vector size:

    Vector_size = SQR(X^2+Y^2)

    Input: varxxx = coordinate X  where X >= Y
           varyyy = coordinate Y  where Y >  0

       lda    varxxx
   L1: sec
       sbc    varyyy
       bcs    L2
       inc    varxxx
       adc    varyyy
   L2: dec    varyyy
       bne    L1

    Output: varxxx = distance = SQR(X^2+Y^2)

    varxxx,varyyy can be variables in zero page.

 See older Cordic demos 8 to 256 bytes
 for more math theory and how it works.


 Intro is packed by using LzxPack02

   Used compression: -tn31c4o6
    Unpacked length: 1085 bytes
      Packed length: 885 bytes
       Lzx depacker: 118 bytes

 Big thanx to Loki for porting Lzx depacker to 6502 !