Jump to content
IGNORED

[Newbie] DASM fatal errors


Fuselage

Recommended Posts

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?

Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...