Fuselage Posted January 29, 2018 Share Posted January 29, 2018 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? Quote Link to comment Share on other sites More sharing options...
vidak Posted January 29, 2018 Share Posted January 29, 2018 I had a similar problem! I think it's -v2 and not -v5 See Kirk Israel's beginner Atari 2600 programming guide. Quote Link to comment Share on other sites More sharing options...
Fuselage Posted January 29, 2018 Author Share Posted January 29, 2018 (edited) 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. Edited January 29, 2018 by Fuselage 1 Quote Link to comment Share on other sites More sharing options...
vidak Posted January 30, 2018 Share Posted January 30, 2018 Ahhhh okay Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.