Joe Stella Posted November 3, 2013 Share Posted November 3, 2013 Hi guys, just taking some baby steps here, and ran into a compiler error. I've typed in Chester's example "Hello World" program (sorta), and am getting the above error during the compile. I don't know what the referenced part of the code is supposed to do, and I haven't been able to find any references here or on google. Any suggestions are appreciated. PROCESSOR 6502 INCLUDE "vcs.h" INCLUDE "macro.h" ORG $F000 ; Cart begins here StartFrame: lda #%00000010 ; Signbal VSYNC start by sta VSYNC ; setting bit 1 REPEAT 3 ; last 3 sanlines sta WSYNC ; (WSYNC = wait until REPEND ; scanline is finished) lda #0 ; Signal VSYNC end (and sta VSYNC ; VBLANK start) PreparePlayfield: lda #$00 sta ENABL ; Disable ball sta ENAM0 ; Disable missles sta ENAM1 sta GRP0 ; Disable players sta GRP1 ; (with a 0s - only shape) REPEAT 37 ; VBLANK lasts 37 scanlines sta WSYNC ; (useful for game logic) REPEND lda #0 sta VBLANK Scanline: cpx #174 ; Phrase over? bcs ScanlineEnd; if so, skip txa ; Y=X/2 (logic shift -> lsr ; divides A by 2) tay lda Phrase,y ; label,Y = mem[label+Y] sta PF1 ; PF1 = playfield (bits ; 4 to 11) ScanlineEnd: sta WSYNC ; Finish current scanline inx ; X=line counter cpx #191 ; last visible scanline? bne Scanline ; unless so, repeat! Overscan: lda #$00000010 ; "turn off" beam again sta VBLANK ; 30 scanlines of REPEAT 30 ; overscan... sta WSYNC REPEND jmp StartFrame ; ... and start it over ; infinity. Phrase: .BYTE %00000000 .BYTE %11111111 .BYTE %10000001 .BYTE %10000001 .BYTE %10000001 .BYTE %11111111 .BYTE %00000000 ORG $FFFA ; Located at the end ; of ROM (cart) .WORD FrameStart ; NMI address .WORD FrameStart ; BOOT address .WORD FrameStart ; BRK address END the compiler output is: C:\Users\User\Desktop\dasm-2.20.11\bin>dasm source.asm -ocart.bin -f3 --- Unresolved Symbol List FrameStart 0000 ???? (R ) --- 1 Unresolved Symbol Fatal assembly error: Source is not resolvable. source.asm Quote Link to comment Share on other sites More sharing options...
Tjoppen Posted November 3, 2013 Share Posted November 3, 2013 StartFrame, not FrameStart Quote Link to comment Share on other sites More sharing options...
Joe Stella Posted November 4, 2013 Author Share Posted November 4, 2013 Thank you for the reply. I did try that, on a hunch, and the program finishes compiling, but Stella just displays a black background and no sprite output. Do you get a different result by chance? Quote Link to comment Share on other sites More sharing options...
Joe Stella Posted November 4, 2013 Author Share Posted November 4, 2013 NVM guys, got it. Just needed to grab the complete github version. Didn't realize the slide version was so incomplete. Quote Link to comment Share on other sites More sharing options...
francipam Posted February 18 Share Posted February 18 your code compiles clean if.. .WORD FrameStart ; NMI address .WORD FrameStart ; BOOT address .WORD FrameStart ; BRK address use StartFrame and not FrameStart 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.