Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Data General Nova
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Hello world program=== This is a minimal programming example in Nova assembly language. It is designed to run under [[Data General RDOS|RDOS]] and prints the string β[[Hello world program|Hello, world.]]β on the console. <syntaxhighlight lang="nasm"> ; a "hello, world" program for Nova running RDOS ; uses PCHAR system call .titl hello .nrel .ent start start: dochar: lda 0,@pmsg ; load ac0 with next character, mov# 0,0,snr ; test ac0; skip if nonzero (don't load result) jmp done .systm .pchar ; print first jmp er ; skipped if OK movs 0,0 ; swap bytes .systm .pchar ; print second jmp er ; skipped if OK isz pmsg ; point to next character jmp dochar ; go around again done: .systm ; normal exit .rtn er: .systm ; error exit .ertn halt pmsg: .+1 ; pointer to first character of string ; note bytes are packed right-to-left by default ; <15><12> denotes a CR LF pair. .txt /Hello, world.<15><12>/ 0 ; flag word to end string .end start </syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)