a3dab23bac
Added ability to RUN a PGX file and the SYS_EXIT call.
22 lines
646 B
ArmAsm
22 lines
646 B
ArmAsm
;;;
|
|
;;; Sample PGX Program
|
|
;;;
|
|
|
|
org $010000
|
|
|
|
dc.b "PGX", $02
|
|
dc.l start
|
|
|
|
start: move.l #$13,d0 ; sys_chan_write
|
|
clr.l d1 ; Channel #0
|
|
move.l #greet,d2 ; Pointer to message
|
|
move.l #greet_end-greet+1,d3 ; Length of message
|
|
trap #15
|
|
|
|
done: clr.l d0 ; sys_exit
|
|
clr.l d1 ; Return value = 0
|
|
trap #15
|
|
|
|
greet: dc.b "Hello, world!"
|
|
greet_end: dc.b 0
|