scene.org File Archive

File download

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

File size:
21 226 bytes (20.73K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 2

Preview

  • file_id.diz 1.04K
  • vc3kjdos.asm 514B
  • vc3kjdos.com 58B
  • vc3kjdos_result.png 8.95K
  • vc3kjdos_source.png 10.81K
  • vc3kjmin.asm 266B

file_id.diz

KeyJ's DOS Weave Pattern

Author:          KeyJ / TRBL
Category:        Christmas Challenge 2023
System:          IBM PC or compatible
Language:        Assembly
Len source code: 266 bytes (minified assembly source)
Len exe file:    58 bytes (DOS .COM file)
Len code only:   58 bytes (DOS .COM files are code-only)

Instructions:
- assemble with yasm:
  $ yasm -f bin -o vc3kjdos.com vc3kjmin.asm
  - other assemblers should work too, but haven't been tested
- run in a DOS emulator like DOSBox:
  $ dosox vc3kjdos.com

Description:
Uses a simple parametric formula: X and Y in, character out.

Comments:
Same approach as with my Python implementation, except it uses a different
range for x so the results never become negative.

Note that the screenshots have been generated with different screen modes
to look nicer: vc3kjdos_result.png is "dosbox -machine cga" with 40-column
mode ("mode 40"); vc3kjdos_source.png is "dosbox -machine ega" in 43-line mode
(the source code is 32 lines long, so it couldn't fit onto one screen
otherwise).