![]() |
![]() |
#1 |
Posts: n/a
|
Devpac keeps Crashing??
Devpac occasionally crashes when I try to assemble code. It will get to the point of telling me that there are no errors and the mouse will freeze, the powerlight flash, at which point it restarts to tell me a guru meditation error message. An example of the code I might type in is as such;
Code:
PROG: MOVEM.L VALUE1,D0-D3 ADD.L D3,D1 ADDX.L D2,D0 MOVEM.L D0-D1,RESULT RTS VALUE1: DS.L 2 VALUE2: DS.L 2 RESULT: DS.L 2 END PGM_4_7 Any ideas of whats wrong would be appreciated. I am using Devpac v.3 (a pirated version I think). Could it be a bad disk image? bad memory? bad program? Again, any help appreciated. Ben Pazolli |
![]() |
#2 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
code looks ok, nothing wrong with it. might be devpac runs out of stack when assembling or something, try to increase stacksize before starting devpac, may help.
|
![]() |
![]() |
#3 |
Dazed and Confused
Join Date: Dec 2001
Location: portsmouth/uk
Posts: 242
|
The code runs fine from devpac when I try it - from WinUAE.
I have that book, and I noticed from the examples I have on disk that I INCLUDE'd misc/easystart.i at the beginning of my code. It was a very long time ago that I was using it, but I seem to remember that it was something about returning to the OS that caused the intermittent crashes (could be I'm totally wrong though ![]() Maybe using the include (supplied on the Devpac disks) would help... |
![]() |
![]() |
#4 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,020
|
When you return to the OS, you should terminate the end of your routine before the RTS with a moveq #0,d0, this tells the OS there were no errors to report, as error handling numbers are put into D0.
Secondly, are you using Master Devpac by any chance? If so, junk it, its prone to crashes, its a hacked version with built in calculator and its shit. |
![]() |
![]() |
#5 |
Registered User
Join Date: Jun 2008
Location: somewhere else
Posts: 533
|
As i recall it was a bug in the official devpac 3 package itself.
If you own a PC or a Mac you should assemble your program with vasm/vlink instead, it'll be much faster. |
![]() |
![]() |
#6 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
|
|
![]() |
![]() |
#7 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,700
|
Ofc it crashes. Devpac is lame Seka is fame, don't you know?
![]() Try to get the exact Devpac version and upgrade if possible. Increasing your stacksize may help, since it is *while assembling* it happens. |
![]() |
![]() |
#8 |
Registered User
Join Date: Jun 2008
Location: somewhere else
Posts: 533
|
It depends on the version, there was 2 shipped: one for 1.x and one for 2.x and upward, the first one doesn't like anything else than 1.x os.
The latest version (v3.18 i think but others behave just as bad) doesn't like the 2.04 os at all (and needs v37 libraries so no go on 1.x systems). |
![]() |
![]() |
#9 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
|
![]() |
![]() |
#10 |
HOL/FTP busy bee
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,091
|
|
![]() |
![]() |
#11 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
|
I learnt 68000 coding from "68000 Assembly Language" by Lance Leventhal (and some other dudes). Not related to the Amiga at all of course, but I thought it was very well written. I also liked it because it was free - stolen from my college library
![]() |
![]() |
![]() |
#12 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Thanks for your tips guys
![]() |
![]() |
![]() |
#13 |
Posts: n/a
|
It's the same book as the guy that posted above. '68000 Assembly Language Programming' by Gerry Kane, Doug Hawkins, Lance Leventhal. It is not great for amiga assembly though, you have to change the programs around to make them all relative addressing; so that they can be placed anywhere. Also like the guy above I got it from my University Library (UWA) but unlike him I intend on returning it.
Ben Pazolli |
![]() |
#14 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 43
Posts: 2,351
|
|
![]() |
![]() |
#15 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
Thanks bpazolli
![]() Anyone knows where can I get the DevPac includes for WB 3.9 ?(I don´t know which version they are) ![]() Last edited by AlfaRomeo; 10 January 2009 at 00:55. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time fixed done, still crashing. | Hache | support.Hardware | 2 | 02 January 2013 17:07 |
WinUAE 1.3.4 in lores - crashing | killergorilla | support.WinUAE | 10 | 06 September 2007 19:19 |
Winuae crashing | RickyC | support.WinUAE | 4 | 29 May 2007 18:01 |
WinUAE 1.3 crashing | Tony Landais | support.WinUAE | 11 | 26 July 2006 12:59 |
Emulator crashing when quitting | Melvein | New to Emulation or Amiga scene | 0 | 02 June 2003 14:27 |
|
|