scene.org File Archive

File download

<root>­/­parties­/­2022­/­vccc22­/­christmas_star_challenge/retrorevd_kim1_6502asm_vc3-2022.zip

File size:
412 571 bytes (402.90K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 3

Preview

  • code.png 313.10K
  • file_id.diz 1.39K
  • Makefile 499B
  • result.png 130.15K
  • star.a65 769B
  • star.bin 85B
  • star.hex 218B

file_id.diz

KIM-1 VC Christmas Challenge 2022

Author: Retro Revd
Category: Christmas Challenge
System:   KIM-1 / PAL-1
Language: Assembler
Len source code: 769
Len exe file:    85
Len code only:   85 (valid for assembler only; length of executable without BASIC stub)
Instructions:
  1. Install a KIM-1 simulator, eg. <http://retro.hansotten.nl/6502-sbc/kim-1-manuals-and-software/kim-1-simulator/>
  2. Load the `star.bin` file into memory with the start address set to $80
  3. Open the TTY console
  4. Run the application (type commands between '*'):

        KIM
	0000 00 *0080<space>*
	0080 A2 *G*

Description:
The code uses a bit pattern that 'describes' the first half of the star. When the first half has been rendered the code modifies itself and then iterates over the bit pattern in reverse to render the second half. Note that because the code is self-modifying, it will need to be reloaded before it can be run again.

Comments:
The source code uses vasm '8-bit oldstyle' syntax and can be built using the `vasm6502_oldstyle` assembler. This assembler (and the sources required to build it) can be downloaded from the vasm website: <http://sun.hasenbraten.de/vasm>. However, since the source code does not rely on any vasm specific features it should be possible to use other 6502 compilers with no or minimal changes.

Use `make` to build the various artifacts.

*** HAPPY CHRISTMAS! ***