Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
hello_fancy's back
Browse files Browse the repository at this point in the history
  • Loading branch information
kspalaiologos authored Mar 10, 2020
1 parent 3adb980 commit 1103050
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/hello_fancy.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bfmake

; A fancy hello world program utilizing the CALLIB, and the newest label features
; including data labels and other goodies we've got!

stk 2
org 2

&string
txt "Hello World!"
db_ 0

mov r1, *string
#call(puts)

end

@puts
rcl r2, r1
jz_ r2, %puts_quit
out r2
inc r1
jmp %puts
@puts_quit
out 10

0 comments on commit 1103050

Please sign in to comment.