start work on running the Mu toolchain atop Mu

This commit is contained in:
Kartik K. Agaram 2021-07-19 23:24:03 -07:00
parent 1eb1ac81ea
commit de5e1931ed
14 changed files with 14 additions and 14 deletions

View File

@ -4,7 +4,7 @@
# Same as https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html
#
# To run:
# $ bootstrap/bootstrap translate apps/ex1.subx -o ex1
# $ bootstrap/bootstrap translate 000init.subx apps/ex1.subx -o ex1
# $ bootstrap/bootstrap run ex1
# Expected result:
# $ echo $?

View File

@ -1,7 +1,7 @@
# String comparison: return 1 iff the two args passed in at the commandline are equal.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex10.subx -o ex10
# $ bootstrap/bootstrap translate 000init.subx apps/ex10.subx -o ex10
# $ bootstrap/bootstrap run ex10 abc abd
# Expected result:
# $ echo $?

View File

@ -6,7 +6,7 @@
# a null-terminated 'kernel string' with a size-prefixed 'SubX string'.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex11.subx -o ex11
# $ bootstrap/bootstrap translate 000init.subx apps/ex11.subx -o ex11
# $ bootstrap/bootstrap run ex11 # runs a series of tests
# ...... # all tests pass
#

View File

@ -2,7 +2,7 @@
# Create a new segment using mmap, save the address, write to it.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex12.subx -o ex12
# $ bootstrap/bootstrap translate 000init.subx apps/ex12.subx -o ex12
# $ bootstrap/bootstrap run ex12
# You shouldn't get a segmentation fault.

View File

@ -1,7 +1,7 @@
# Compare 3 and 3.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex13.subx -o ex13
# $ bootstrap/bootstrap translate 000init.subx apps/ex13.subx -o ex13
# $ bootstrap/bootstrap run ex13
# Expected result:
# $ echo $?

View File

@ -1,7 +1,7 @@
# Multiply 2 numbers.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex14.subx -o ex14
# $ bootstrap/bootstrap translate 000init.subx apps/ex14.subx -o ex14
# $ bootstrap/bootstrap run ex14
# Expected result:
# $ echo $?

View File

@ -1,7 +1,7 @@
# Add 3 and 4, and return the result in the exit code.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex2.subx -o ex2
# $ bootstrap/bootstrap translate 000init.subx apps/ex2.subx -o ex2
# $ bootstrap/bootstrap run ex2
# Expected result:
# $ echo $?

View File

@ -1,7 +1,7 @@
# Add the first 10 numbers, and return the result in the exit code.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex3.subx -o ex3
# $ bootstrap/bootstrap translate 000init.subx apps/ex3.subx -o ex3
# $ bootstrap/bootstrap run ex3
# Expected result:
# $ echo $?

View File

@ -1,7 +1,7 @@
# Read a character from stdin, save it to a global, write it to stdout.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex4.subx -o ex4
# $ bootstrap/bootstrap translate 000init.subx apps/ex4.subx -o ex4
# $ bootstrap/bootstrap run ex4
== data

View File

@ -1,7 +1,7 @@
# Read a character from stdin, save it to a local on the stack, write it to stdout.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex5.subx -o ex5
# $ bootstrap/bootstrap translate 000init.subx apps/ex5.subx -o ex5
# $ bootstrap/bootstrap run ex5
== code

View File

@ -1,7 +1,7 @@
# Print out a (global variable) string to stdout.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex6.subx -o ex6
# $ bootstrap/bootstrap translate 000init.subx apps/ex6.subx -o ex6
# $ bootstrap/bootstrap run ex6
# Hello, world!

View File

@ -5,7 +5,7 @@
# the character read.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex7.subx -o ex7
# $ bootstrap/bootstrap translate 000init.subx apps/ex7.subx -o ex7
# $ bootstrap/bootstrap run ex7
# Expected result:
# $ echo $?

View File

@ -1,7 +1,7 @@
# Example reading commandline arguments: compute length of first arg.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex8.subx -o ex8
# $ bootstrap/bootstrap translate 000init.subx apps/ex8.subx -o ex8
# $ bootstrap/bootstrap run ex8 abc de fghi
# Expected result:
# $ echo $?

View File

@ -4,7 +4,7 @@
# letter of second arg.
#
# To run:
# $ bootstrap/bootstrap translate apps/ex9.subx -o ex9
# $ bootstrap/bootstrap translate 000init.subx apps/ex9.subx -o ex9
# $ bootstrap/bootstrap run ex9 z x
# Expected result:
# $ echo $?