thenejcar / SicDemos

Demo programs for SicTools (SIC/XE hypothetical computer)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SicDemos

Demo programs for SicTools (SIC/XE hypothetical computer)

Alphabet

Repeatedly print English alphabet on the standard output. Run from the command line to see the standard output.

  • Source code: abc.asm
  • Frequency: 100 Hz
  • Author: Tomaž Dobravec (adapted by Jurij Mihelič)

Towers of Hanoi

Solve the famous Towers of Hanoi puzzle. Register A is set up with the initial number of disks (default 10).

  • Source code: hanoi.asm
  • Frequency: 10000 Hz = 10 kHz
  • Author: Jurij Mihelič

Bouncing balls

Animate moving bouncing balls on the textual screen.

  • Source code: balls.asm
  • Textual screen: 80x25 at B800
  • Frequency: 10000 Hz = 10 kHz
  • Author: Tomaž Dobravec

Game of life

Animate Conways' Game of Life on the graphical screen. The game is initialized with the glider figure at the top left corner.

  • Source code: life.asm
  • Graphical screen: 64x64 at A000
  • Frequency: 10000000 Hz = 10 MHz
  • Author: Jurij Mihelič

H-tree fractal

Draw an H-tree fractal on the graphical screen.

  • Source code: htree.asm
  • Graphical screen 333x333 at A000
  • Frequency: 10000 Hz = 10 kHz
  • Author: Klemen Klanjšček

Textual draw

Draw on textual screen by typing commands to stdin.

  • Source code: drawtext.asm
  • Textual screen: 80x25 at 0B800
  • Frequency: 10000 Hz = 10 kHz
  • Author: Nejc Kišek

Selection sort

Print trace of the selection sort algorithm.

  • Source code: selectsort.asm
  • Frequenct: 1000 Hz = 1 kHz
  • Author: Naum Gjorgjeski

Link - Factorial

Calculates factorial for numbers from 1 to 10 and writes the result to standard output or on the textual screen. Written in multiple files that have to be assembled and then linked before loading. If you use print.obj, the results are displayed on stdout. If you use print2.obj instead, they are displayed on textual screen.

Linking order: main.obj, fact.obj, print.obj, stack.obj, ending.obj

  • Source code: .asm files in 'link-factorial/' directory
  • Linker commandline flags: -o linked.obj main.obj fact.obj print.obj stack.obj ending.obj
  • Textual screen: 80x25 at B800
  • Frequency: 10000 Hz = 10kHz
  • Author: Nejc Kišek

About

Demo programs for SicTools (SIC/XE hypothetical computer)


Languages

Language:Assembly 100.0%