MonST tutorial?

All 680x0 related coding posts in this section please.

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

User avatar
YQN
Atari freak
Atari freak
Posts: 73
Joined: Sat Jul 22, 2017 6:01 pm
Location: Meaux
Contact:

MonST tutorial?

Postby YQN » Mon Aug 19, 2019 8:45 pm

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
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 130
Joined: Tue Apr 11, 2017 8:57 pm
Location: the people's republic of south yorkshire, uk.

Re: MonST tutorial?

Postby thomas3 » Mon Aug 19, 2019 9:36 pm

If you have an assembled source in Devpac, try selecting Debug rather than MonST :)

User avatar
YQN
Atari freak
Atari freak
Posts: 73
Joined: Sat Jul 22, 2017 6:01 pm
Location: Meaux
Contact:

Re: MonST tutorial?

Postby YQN » Mon Aug 19, 2019 9:40 pm

Damn I thought I had tried that already! Silly me! Thanks!

robdaemon
Atariator
Atariator
Posts: 26
Joined: Mon Jul 24, 2017 5:01 am

Re: MonST tutorial?

Postby robdaemon » Mon Aug 19, 2019 9:43 pm

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: 2209
Joined: Tue May 21, 2002 12:44 pm
Location: Saint Cloud (France)
Contact:

Re: MonST tutorial?

Postby Zorro 2 » Fri Aug 23, 2019 10:37 am

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


Social Media

     

Return to “680x0”

Who is online

Users browsing this forum: No registered users and 3 guests