scene.org File Archive

File download

<root>­/­parties­/­2022­/­lovebyte22­/­256_byte_intro_oldschool/cometsong256.zip

File size:
63 815 bytes (62.32K)
File date:
2022-02-16 05:32:06
Download count:
all-time: 24

Preview

  • lovebyte2022_cometsong_256/ dir
  • lovebyte2022_cometsong_256/ay3_write_regs.s 889B
  • lovebyte2022_cometsong_256/COMETSONG 252B
  • lovebyte2022_cometsong_256/cometsong.dsk 140.00K
  • lovebyte2022_cometsong_256/cometsong.s 3.02K
  • lovebyte2022_cometsong_256/file_id.diz 666B
  • lovebyte2022_cometsong_256/mA2E_2.s 3.69K
  • lovebyte2022_cometsong_256/mockingboard_init.s 2.54K
  • lovebyte2022_cometsong_256/play_frame.s 1.12K
  • lovebyte2022_cometsong_256/visual.s 308B
  • lovebyte2022_cometsong_256/viz.s 1.06K

file_id.diz

Cometsong
-
3-channel Mockingboard music with Lo-res graphics
256-byte Intro for Apple II, Lovebyte 2022
by Deater / dSr

Fitting Mockingboard music in 256B was a challenge.
Note: only plays music out the left stereo channel.
Thanks to mA2E for the music.
Thanks to qkumba for optimization help.

This code does a lot of tricky things.  It loads into the zero page
(which makes memory use less) but the music data overflows into
the low half of the stack (at $100 on 6502).  The rest of the code
avoids the use of the stack, so we can use the "PLA" (pull stack
to accumulator) instruction to do an auto-increment load through
the music.  This trick saved 15+ bytes.