FoenixMCP/samples/HelloPGX/hello.lst
Peter Weingartner a3dab23bac SYS_EXIT, RUN command
Added ability to RUN a PGX file and the SYS_EXIT call.
2021-09-30 13:39:39 -04:00

62 lines
2 KiB
Plaintext

F00:0001 ;;;
F00:0002 ;;; Sample PGX Program
F00:0003 ;;;
F00:0004
F00:0005 org $010000
F00:0006
F00:0007 dc.b "PGX", $02
S01:00010000: 50 47 58
S01:00010003: 02
F00:0008 dc.l start
S01:00010004: 00 01 00 08
F00:0009
F00:0010 start: move.l #$13,d0 ; sys_chan_write
S01:00010008: 70 13
F00:0011 clr.l d1 ; Channel #0
S01:0001000A: 72 00
F00:0012 move.l #greet,d2 ; Pointer to message
S01:0001000C: 24 3C 00 01 00 1C
F00:0013 move.l #greet_end-greet+1,d3 ; Length of message
S01:00010012: 76 0E
F00:0014 trap #15
S01:00010014: 4E 4F
F00:0015
F00:0016 done: clr.l d0 ; sys_exit
S01:00010016: 70 00
F00:0017 clr.l d1 ; Return value = 0
S01:00010018: 72 00
F00:0018 trap #15
S01:0001001A: 4E 4F
F00:0019
F00:0020 greet: dc.b "Hello, world!"
S01:0001001C: 48 65 6C 6C 6F 2C 20 77 6F 72 6C 64 21
F00:0021 greet_end: dc.b 0
S01:00010029: 00
F00:0022
Sections:
S01 seg10000
Sources:
F00 hello.s
Symbols:
done EXPR(65558=0x10016) UNUSED ABS
greet_end EXPR(65577=0x10029) ABS
greet EXPR(65564=0x1001c) ABS
start EXPR(65544=0x10008) ABS
_MOVEMBYTES EXPR(0=0x0) INTERNAL
MOVEMSIZE EXPR(0=0x0) INTERNAL
_MOVEMREGS EXPR(0=0x0) INTERNAL
__LINE__ EXPR(22=0x16) INTERNAL
__FO EXPR(0=0x0) INTERNAL
__RS EXPR(0=0x0) INTERNAL
REPTN EXPR(-1=0xffffffff) INTERNAL
__VASM EXPR(1=0x1) INTERNAL
__UNIXFS EXPR(0=0x0) INTERNAL
There have been no errors.