base:techtech_fli
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
base:techtech_fli [2016-04-21 13:14] – compyx | base:techtech_fli [2016-04-22 12:41] (current) – added a screenshot compyx | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Below is an example of a tech-tech effect, achieved using a so-called FLI-routine. This is **not** a tech-tech with a FLI logo, its a simple | + | Below is an example of a tech-tech effect, achieved using a so-called FLI-routine. This is **not** a tech-tech with a FLI logo, its a simple |
+ | |||
+ | The routine differs from [[magazines: | ||
+ | |||
+ | {{: | ||
I wrote this code as part of an attempt to regain my old VIC-trickery skills, it's been about 25 years since I did a tech-tech. As such, the code may not be up to today' | I wrote this code as part of an attempt to regain my old VIC-trickery skills, it's been about 25 years since I did a tech-tech. As such, the code may not be up to today' | ||
+ | |||
+ | Note: I don't explain FLI in detail in this article, there are other articles here which explain FLI properly. | ||
The code can be assembled by using [[https:// | The code can be assembled by using [[https:// | ||
Line 11: | Line 17: | ||
- | ====== The Theory ===== | + | ===== The Theory ===== |
//I'll use the word ' | //I'll use the word ' | ||
Line 81: | Line 87: | ||
; sinus = 9 | ; sinus = 9 | ||
- | lda #$1d | + | lda #$1e |
sta $d011 | sta $d011 | ||
lda #$01 ; 9 & 7 == 1 | lda #$01 ; 9 & 7 == 1 | ||
Line 90: | Line 96: | ||
; one column to the right | ; one column to the right | ||
- | ; and so on for each line of the logo | + | ; and so on for each line of the logo, wrapping the $d011 |
+ | ; value around from $1f to $18 | ||
</ | </ | ||
Line 98: | Line 105: | ||
===== The Code ===== | ===== The Code ===== | ||
- | Here's the actual source code, in 64tass syntax. The FLI routine needs to be unrolled, the sinus calculation can all be done in a loop, but that eats cycles, so I also wrote some unrolled code for the $d016/$d018 values updating: | + | Here's the actual source code, in 64tass syntax. The FLI routine needs to be unrolled, the sinus calculation can all be done in a loop, but that eats cycles, so I also wrote some unrolled code for the $d016/$d018 values updating. |
+ | |||
+ | Before assembling, one should probably comment out the references to the music, I would be surprised to see everyone having their HVSC at "/ | ||
<code 6502tasm> | <code 6502tasm> |
base/techtech_fli.txt · Last modified: 2016-04-22 12:41 by compyx