Jump to content

Photo

[Newbie] DASM fatal errors


3 replies to this topic

#1 Fuselage OFFLINE  

Fuselage

    Combat Commando

  • 4 posts
  • Location:Maryland

Posted Mon Jan 29, 2018 3:05 AM

Hey all,
 
I was studying Hugg's book but instead of relying on his IDE, I wanted to make sure I could compile the code into a .bin myself.
 
I downloaded DASM, set up a commandline to open in its folder, copied vcs.h and macro.h into that folder, as well as my red.asm file, using the first program in the book:


	processor 6502

	include "vcs.h"
	include "macro.h"
	

	org  $f000


Start   sei		; disable interrupts
	cld		; disable BCD math mode
	ldx  #$ff	; init stack pointer to $FF (grows upward)
	txs		; ... transfer X register to S register (stack pointer)

	lda  #$00	; set A register to zero ('#' denotes constant)

Zero    sta  $00,X	; store A register at address ($0 + X)
	dex		; decrement X by one
	bne  Zero	; branch until X is zero
        sta  $00	; the loop doesn't cover address 0

	lda #$30	;load value into A ($30 is deep red on NTSC)
	sta COLUBK	;put the value of A into the background color register


	jmp Start
	
	org $fffc
	.word Start
	.word Start

I've run DASM with a variety of line options, and each time I get the 'dasm.exe stopped working'.

 

I also tried compiling the kernel snippet from this forum, along with the exact parameters suggested (dasm kernel.asm -lkernel.txt -f3 -v5 -okernel.bin) and the best I get is "START OF PASS: 1" before the program shuts down.

 

This is the latest version of DASM and I'm working on a Vista computer.  I have seen 'read the manual' but that's not included with this release.

 

Any ideas?



#2 vidak OFFLINE  

vidak

    Moonsweeper

  • 424 posts
  • Location:Sydney, Australia

Posted Mon Jan 29, 2018 4:01 AM

I had a similar problem!

 

I think it's -v2 and not -v5

 

See Kirk Israel's beginner Atari 2600 programming guide.



#3 Fuselage OFFLINE  

Fuselage

    Combat Commando

  • Topic Starter
  • 4 posts
  • Location:Maryland

Posted Mon Jan 29, 2018 12:59 PM

Thanks for the reply.  This got me thinking that it couldn't be a parameter issue, since none of them should affect the execution of the assembler itself.

 

I went back and got an older version of DASM and that solved the issue.   :grin:


Edited by Fuselage, Mon Jan 29, 2018 1:03 PM.


#4 vidak OFFLINE  

vidak

    Moonsweeper

  • 424 posts
  • Location:Sydney, Australia

Posted Mon Jan 29, 2018 6:35 PM

Ahhhh okay :)






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users