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?