scene.org File Archive

File download

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

File size:
191 854 bytes (187.36K)
File date:
2024-12-29 14:13:04
Download count:
all-time: 0

Preview

  • file_id.diz 802B
  • iolo2024.asm 315B
  • iolo2024.com 57B
  • iolo2024.png 189.84K

file_id.diz

iolo_pc_asm_57b_vc3-2024

Author: iolo^Compofillers
Category: Christmas Challenge
System:   PC, MS-DOS
Language: Assembler (nasm)
Len source code: 315 bytes
Len exe file:    57 bytes
Len code only:   
Instructions:
Execute the code under DOS-X emulator, MS-DOS 7.1 (or Windows 98 pure DOS mode) emulation. (should run on other systems too, not tested)
Description:
The code writes ditrctly to video memory. First it prints the top tie. Then it uses two nested loops to print the rest of the box. 
For each line, using a rotation with carry, it determines if the line uses the "+ and -" or the "! and <space>" characters.
For each character in a line, using again a rotation with carry, it determines if the first or the second character is used.
Comments:
First entry for the contest :)