Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target
.build
/assembly

# Ignore arm64.pdf
arm64.pdf
Expand Down
10 changes: 0 additions & 10 deletions assembly/.gitignore

This file was deleted.

110 changes: 0 additions & 110 deletions assembly/Makefile

This file was deleted.

46 changes: 0 additions & 46 deletions assembly/srcs/chaining.s

This file was deleted.

27 changes: 0 additions & 27 deletions assembly/srcs/helloworld.s

This file was deleted.

31 changes: 0 additions & 31 deletions assembly/srcs/printf.s

This file was deleted.

25 changes: 0 additions & 25 deletions assembly/srcs/printf_2.s

This file was deleted.

35 changes: 0 additions & 35 deletions assembly/srcs/stack.s

This file was deleted.

4 changes: 3 additions & 1 deletion examples/00_hello_world.hsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Jamsignal <(-.-)> End the declaration of ext

A long time ago in a galaxy far, far away... <(-.-)> Start of a function called galaxy (this is the name of the `main` function)
Execute order printf <(-.-)> Call the printf function with only a string literal
"Hello World!\n"
Manifest
"Hello World!\n"
CloseManifest
Order executed
May the force be with you. <(-.-)> End of the galaxy (main) function
4 changes: 3 additions & 1 deletion examples/01_function_declaration.hsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ May the force be with you.

A long time ago in a hello_world far, far away...
Execute order printf
"Hello World!\n"
Manifest
"Hello World!\n"
CloseManifest
Order executed
May the force be with you.
43 changes: 43 additions & 0 deletions examples/04_function_with_returns.hsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Hypersignal printf Starfield 1
Holotext
Jamsignal

A long time ago in a hello_world far, far away...
CargoDock
10
CloseCargo
May the force be with you.


A long time ago in a galaxy far, far away...
I am a big deal in the resistance. finn
Judge me by my size, do you ? -10

Execute order printf
Manifest
"%d\n"
finn
CloseManifest
Order executed

Execute order hello_world
UnloadCargo
Credit finn
CloseCargo
Order executed

Execute order hello_world
UnloadCargo
Credit poe
CloseCargo
Order executed

Execute order printf
Manifest
"%d %d\n"
finn
poe
CloseManifest
Order executed
May the force be with you.

Loading