Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
star_expander [2016/05/28 19:46] ex_writer |
star_expander [2016/06/05 16:10] ex_writer |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Star Battle Expanded Pattern ====== | ====== Star Battle Expanded Pattern ====== | ||
- | //Star Battle// uses the [[Magic Register]]'s [[magic register#expander|Expander]] function to pack its fighter patterns in half the ROM space. The XOR function 'merges' the fighter with the background. | + | //Star Battle// uses the [[hardware:magic system#Magic Register]]'s [[hardware:magic system#expander|Expander]] function to pack its fighter patterns in half the ROM space. The XOR function 'merges' the fighter with the background. |
<code z80> | <code z80> | ||
+ | |||
; XPAND load (code portions omitted for clarity) | ; XPAND load (code portions omitted for clarity) | ||
+ | ; [...] | ||
L2650: LD A,$08 | L2650: LD A,$08 | ||
OUT ($19),A ; write 00001000B to XPAND (foreground color = 10, background = 00) | OUT ($19),A ; write 00001000B to XPAND (foreground color = 10, background = 00) |