(This is from Davie's Tutorial btw)
processor 6502 include vcs.h include macro.h SEG ORG $F000 Reset StartOfFrame ; Start of vertical blank processing lda #0 sta VBLANK lda #2 sta VSYNC ; 3 scanlines of VSYNCH signal... sta WSYNC sta WSYNC sta WSYNC lda #0 sta VSYNC ; 37 scanlines of vertical blank... sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC ; 192 scanlines of picture... ldx #0 ldy #0 REPEAT 192; scanlines inx stx COLUBK nop nop nop dey sty COLUBK sta WSYNC REPEND lda #%01000010 sta VBLANK ; end of screen - enter blanking ; 30 scanlines of overscan... sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC sta WSYNC jmp StartOfFrame ORG $FFFA .word Reset ; NMI .word Reset ; RESET .word Reset ; IRQ END
I know it's to big to fit in 4k and I have to throw in some loops. But I'll get to that in a moment once I figure out what I am doing wrong.
So next if I copy and paste this code:
processor 6502 include vcs.h SEG org $F000
replacing the what's there I don't get any errors other then:
picd.asm (8): error: Unknown Mnemonic 'Reset'. picd.asm (9): error: Unknown Mnemonic 'StartOfFrame'. Unrecoverable error(s) in pass, aborting assembly! Complete.
The only major difference is that I don't include the macro.h file and even if I do I still just get these last few errors. So is there perhaps required indenting like with Python? Or what is going on here?
I have had the same problems with the Unknown Mnemonic 'LabelName' thing before, and had to copy and past the original code and then it worked. I'm just confused.. This should work just fine right??













