scene.org File Archive

File download

<root>­/­parties­/­2021­/­vintagecomputingchristmaschallenge21­/­challenge/claire_vcc2021.zip

File size:
59 693 bytes (58.29K)
File date:
2021-12-25 12:55:52
Download count:
all-time: 23

Preview

  • Asm2.asm 851B
  • Assembly output.txt 1.83K
  • Info.txt 792B
  • Screenshot 2021-12-11 232731.jpg 74.73K

file_id.diz

Author: Claire Wilson
System: Amstrad CPC464
Language: Z80 assembly
Source Length: 31 lines (851 bytes)
Executable length: 48 bytes (37 executable, 11 data)
Description:
There's an 11 byte array (xpos) denoting the number of stars per row
Centre of an Amstrad CPC464 in mode 1 is column 20 so we get an x location
of 20-x/2 (or, as executed lines 9~12 20, value at current ix which is a pointer
into xpos shifted right 1; 20 is subtracted from this). For authenticity, I use
the Firmware call to emulate the standard text mode to locate the text cursor 
then run the loop to print the number of stars indicated again calling the firmware's
print character routine. Increment row count, increment xpos pointer in ix, if we're
not on the 15th row (beyond buffer), rinse and repeat.