scene.org File Archive

File download

<root>­/­parties­/­2024­/­vccc24­/­christmas_challenge/lightforce6128_cpc_asm_43b_vc3-2024.zip

File size:
72 909 bytes (71.20K)
File date:
2024-12-29 14:13:04
Download count:
all-time: 0

Preview

  • lightforce6128_cpc_asm_43b_vc3-2024/ dir
  • lightforce6128_cpc_asm_43b_vc3-2024/file_id.diz 1.29K
  • lightforce6128_cpc_asm_43b_vc3-2024/present.bin 171B
  • lightforce6128_cpc_asm_43b_vc3-2024/present.dsk 190.25K
  • lightforce6128_cpc_asm_43b_vc3-2024/result.png 13.90K
  • lightforce6128_cpc_asm_43b_vc3-2024/size_binary.png 14.13K
  • lightforce6128_cpc_asm_43b_vc3-2024/size_disk.png 30.55K
  • lightforce6128_cpc_asm_43b_vc3-2024/source.png 13.70K
  • lightforce6128_cpc_asm_43b_vc3-2024/source.txt 265B
  • lightforce6128_cpc_asm_43b_vc3-2024/source_long.txt 4.46K

file_id.diz

lightforce6128_cpc_asm_43b_vc3-2024

Author: lightforce6128
Category: Christmas Challenge 2024
System:   Amstrad CPC 6128
Language: Z80 Assembler (WinAPE/Maxam)
Len source code: 265 (4466 with comments and macros)
Len exe file:     43 (171 with header)
Len code only:    43
Instructions:
  - Install WinAPE from <http://www.winape.net/download/WinAPE20B2.zip>
  - In menu [Settings / General] select profile 'CPC6128'.
  - Restart with menu [Settings / Cold Reset].
  - Open menu [File / Drive A: / Insert Disc Image]. Select file 'present.dsk'.
  - At BASIC prompt of emulator write (first line for clearing screen is optional):
        CLS:LOCATE 1,22

        MEMORY 11529:LOAD"present":CALL 11529
Description:
  - The bow is drawn separately using an ASCII control code to move the cursor.
  - The rest is drawn in three steps: '-', '!', and finally '+'.
  - For this two nested loops are used that cover the coordinates 18 to 0 with different step sizes.
  - Preparation: Build up two queues with the character to write (in HD) and the step sizes (in LE).
  - The queues are shifted by one in an outer loop and filled with a new element.
  - After three iterations nothing will change any longer.
Comments:
  It was fun to take part in this challenge. Thanks to Logiker for hosting it.