Of course. Attached is an executable. Here is the source:
Code:
section code, code
UaeCommand: macro
pea 0.w
move.l a0, -(sp) ; output (not used)
pea .cmdend\@-.cmd\@
pea .cmd\@(pc)
pea -1.w
pea 82.w
jsr $f0ff60
lea 24(sp), sp
bra .done\@
.cmd\@:
dc.b \1
dc.b 0
.cmdend\@:
even
.done\@:
endm
UaeCommand 'DBG "w 0 0 1 w"'
rts
This opens a console window with the caption
Arabuusimiehet.WinUAE
and the contents
Memwatch breakpoints enabled
0: 00000000 - 00000000 (1) W CPU