home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
utilities
/
utilss
/
sasm
/
SAsm
/
Source
/
Hello_B
< prev
next >
Wrap
Text File
|
1993-03-20
|
1KB
|
41 lines
;--> Hello_B
; Second file of demo program for SAsm
; © D.J.Holden 1991
; This code will only be assembled if the SHIFT key
; is held down during assembly
# IF shift%=TRUE THEN
adrl r2,shift_message ; Make r2 point to the message
FNmessage (r2) ; Display message pointed to by r2
# ENDIF
; End of conditional assembly section
mov r0,#0
swi "OS_Exit" ; All done so quit
; These messages are defined using the mnemonic db
; This enables control codes to be inserted into a
; string without lots of 'equbs' or '+CHRS$s'
.welcome db "Welcome to the SAsm Assembler",13,10
db "This is the 'Hello' demonstration program."
db 13,10,10,0
.shift_message
db 7,"When you assembled this program",13,10
db "the SHIFT key was held down.",13,10,10,0
# END ; Finished writing code
;------------------------------------------------------------
; Everything below here won't be assembled but will be passed
; straight to Basic so should only be Macro definitions
;------------------------------------------------------------