home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
ST_USER
/
1993
/
USERJN93.MSA
/
DEVPAC2_DEMO.S
< prev
next >
Wrap
Text File
|
1993-04-20
|
571b
|
30 lines
* a simple test program for DevpacST version 2
* prints a simple message, waits for a key, then quits
* two deliberate mistakes
c_conws equ 9
c_conin equ 1
opt d+ long labels for debugging
opt e- disable odd address checking
* firstly print the string
move.l #string,-(sp)
move.w #c_conws,-(sp)
trap #1
addq.l #6,a7 restore stack
* now wait for a key
mov.w c_conin,-(sp)
trap #1
addq.l #2,a7
* and quit
clr.w -(sp)
trap #1 quick exit
string dc.b "A simple GEMDOS program",13,10
dc.b "Press any key to Quit...",0