scene.org File Archive

File download

<root>­/­parties­/­2022­/­vccc22­/­christmas_star_challenge/reddie_bk10-11m_assembler_vc3-2022.zip

File size:
229 151 bytes (223.78K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 9

Preview

  • file_id.diz 1.18K
  • STAR_11.bin 42B
  • STAR_11.txt 215B
  • STAR_BK_v11_result_on_screen.png 213.91K
  • VCCC2022_BK_source_screenshot.png 22.69K

file_id.diz

Name of Release: STAR_11 (as file into archive, huh)
Author: reddie
Category: Christmas Challenge 2022
System: BK-0010/11M (PDP11-compatible Soviet computer)
Language: Assembler (BKTurbo8)
Len source code: 215 bytes, file "STAR_11.txt"
Len exe file:    42 bytes (STAR_11.bin, including 4-bytes header)
Len code only:   38 bytes
Instructions: (on real hardware) load&start STAR_11.bin from BK-0010 Monitor or any DOS for BK10/11M);
(in emulator) use "bkemu" emulator, it can be downloaded at https://gid.pdp-11.ru/bkemu.html
run "BK_x64.exe", then drag&n&drop file "STAR_11.bin" into it's main window, and it's load&start the code automatically.
Description(how the code works): the program builds a star from four triangles, in two passes, two triangles in each. In turn, the triangles are drawn by the "lines", using the ROM program to print the characters. Before the second pass, the code is patched to change the direction of rendering. The compilation address is selected so that the PC register can be used as a data pointer at the same time as the address for the patch (stored in the R0 register)
Comments:
I'm newbie to programming on BK, but 38 bytes it's not bad =)
reddie, 2022-dec-06