scene.org File Archive

File download

<root>­/­parties­/­2023­/­vccc23­/­christmas-diamonds/xeleh_pc_asm_vc3-2023.zip

File size:
321 926 bytes (314.38K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 11

Screenshot (by pouët.net)

Screenshot

Preview

  • xeleh_pc_asm_vc3-2023/ dir
  • xeleh_pc_asm_vc3-2023/determinants.png 152.50K
  • xeleh_pc_asm_vc3-2023/file_id.diz 805B
  • xeleh_pc_asm_vc3-2023/result.png 25.56K
  • xeleh_pc_asm_vc3-2023/source.png 155.96K
  • xeleh_pc_asm_vc3-2023/v1.asm 1.81K
  • xeleh_pc_asm_vc3-2023/v2.asm 1.36K
  • xeleh_pc_asm_vc3-2023/v3.asm 1.29K
  • xeleh_pc_asm_vc3-2023/v4.asm 1.44K
  • xeleh_pc_asm_vc3-2023/v5.asm 1.45K
  • xeleh_pc_asm_vc3-2023/vccc2023.asm 203B
  • xeleh_pc_asm_vc3-2023/vccc2023.com 41B

file_id.diz

xeleh_pc_asm_vc3-2023

Author:   Xeleh
Category: Christmas Challenge
System:   IBM PC or compatible
Language: x86 assembler, NASM
Len source code:
Len exe file:    41 bytes
Len code only:
Instructions:
Tested on DOSBox-X, it should work also on DOSBox.
Description:
A determinant is calculated for each character position of the 19x19 object area.
The determinant of the positions belonging to any of the lines we need to draw satisfies one of the following formulas:
  - (column position + row position + 3 ) % 6 = 0 for the 45 degrees lines
  - (column position - row position + 21) % 6 = 0 for the 135 degrees lines
Where both row and column positions are zero-based and % stands for the modulo operation. 
Comments:
Thanks for organizing this challenge, Logiker. It was quite fun! :)