Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
|
|
@ -0,0 +1,16 @@
|
|||
.global _start
|
||||
|
||||
.text
|
||||
_start:
|
||||
mov x8, #64 //64 is write
|
||||
mov x0, #2 //2 is stderr
|
||||
adr x1, msg //mov address of msg into x1
|
||||
mov x2, #(msgend - msg) //msgend minus msg is the length of message
|
||||
svc #0 //system call
|
||||
mov x8, #93 //93 is exit
|
||||
mov x0, #0 //0 is the exit code.
|
||||
svc #0 //system call
|
||||
|
||||
msg:
|
||||
.ascii "Goodbye, World!\n"
|
||||
msgend:
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/* ARM assembly Raspberry PI */
|
||||
/* program hellowordLP.s */
|
||||
.data
|
||||
szMessage: .asciz "Goodbye world. \n " @ error message
|
||||
szMessage: .ascii "Goodbye world. \n " @ error message
|
||||
.equ LGMESSAGE, . - szMessage @ compute length of message
|
||||
|
||||
.text
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
import ballerina/io;
|
||||
|
||||
public function main() {
|
||||
io:fprintln(io:stderr, "Goodbye, World!");
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
STDERR.puts "Goodbye, World!"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class Goodbye {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
"Goodbye, World!"->ErrorLine();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
|10 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1
|
||||
|
||||
|100
|
||||
|
||||
@on-reset ( -> )
|
||||
;my-string print-error
|
||||
BRK
|
||||
|
||||
@print-error ( str* -- )
|
||||
&while
|
||||
LDAk .Console/error DEO
|
||||
INC2 LDAk ?&while
|
||||
POP2
|
||||
JMP2r
|
||||
|
||||
@my-string
|
||||
"Goodbye 20 "World! 0a00
|
||||
Loading…
Add table
Add a link
Reference in a new issue