MonST tutorial?

All 680x0 related coding posts in this section please.

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
User avatar
YQN
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 124
Joined: Sat Jul 22, 2017 6:01 pm
Location: Meaux
Contact:

MonST tutorial?

Post by YQN »

Hi,

I'm trying to find a way to debug my beginner code. If you know a way to debug code assembled with vasm, I'd be very much interested. Same with MonST, I just don't get it. I can open it from Devpac but the assembly in the window doesn't look like my code and when I press CTRL-Z (or CTRL-S) I get a 'Cannot run' message :/

Any help is greatly appreciated!
User avatar
thomas3
Captain Atari
Captain Atari
Posts: 160
Joined: Tue Apr 11, 2017 8:57 pm
Location: the people's republic of south yorkshire, uk.

Re: MonST tutorial?

Post by thomas3 »

If you have an assembled source in Devpac, try selecting Debug rather than MonST :)
User avatar
YQN
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 124
Joined: Sat Jul 22, 2017 6:01 pm
Location: Meaux
Contact:

Re: MonST tutorial?

Post by YQN »

Damn I thought I had tried that already! Silly me! Thanks!
robdaemon
Atari User
Atari User
Posts: 38
Joined: Mon Jul 24, 2017 5:01 am

Re: MonST tutorial?

Post by robdaemon »

What flags did you use with vasm?

Try this:

Code: Select all

; Turn on debug symbols
     opt d+

; Hello World in 68000 Assembler (Atari ST)

     move.l #helloworld,-(A7)
     move   #9,-(A7)
     trap   #1
     addq.l #6,A7
     move   #0,-(A7)
     trap   #1
helloworld:
     dc.b "Hello World!",$0d,$0a,0
and the vasm command line:

Code: Select all

./vasmm68k_mot -Ftos -devpac hello.S -o hello.ttp
That nets you:

Code: Select all

file hello.ttp                          
hello.ttp: Atari ST M68K contiguous executable (txt=36, dat=0, bss=0, sym=14)
The opt line will enable debug symbols if you're in Devpac-compatible mode. Note the sym=14 line.

I haven't ran this into MonST, but this is going mostly off memory, so you will probably have to tweak.
User avatar
Zorro 2
Administrator
Administrator
Posts: 2220
Joined: Tue May 21, 2002 12:44 pm
Location: Saint Cloud (France)
Contact:

Re: MonST tutorial?

Post by Zorro 2 »

YQN wrote:Same with MonST, I just don't get it. I can open it from Devpac but the assembly in the window doesn't look like my code and when I press CTRL-Z (or CTRL-S) I get a 'Cannot run' message :/
Hi mister,

Use this version in Steem for example to debug our program with Monst :)

A+
Member of NoExtra Team
Post Reply

Return to “680x0”