Jump to content

Photo

Where can I download vcs.h & macro.h?


6 replies to this topic

#1 PaultheRoman OFFLINE  

PaultheRoman

    Space Invader

  • 15 posts

Posted Sat Sep 15, 2018 7:26 PM

Since Andrew Davie isn't hosting his website anymore for the DASM assembler, I don't know where I can get the vcs.h and macro.h files. It's not in the sourceforge distribution https://sourceforge....ts/dasm-dillon/. Does anyone know where it's distributes?



#2 Karl G OFFLINE  

Karl G

    Dragonstomper

  • 561 posts

Posted Sat Sep 15, 2018 7:36 PM

They can be found in the DASM source download.  From the DASM project page, go to Files, and download the source for the version you are looking for.  In the source distribution, those files can be found under machines->atari2600.



#3 PaultheRoman OFFLINE  

PaultheRoman

    Space Invader

  • Topic Starter
  • 15 posts

Posted Sat Sep 15, 2018 8:08 PM

I was able to find it. Thanks, Karl!



#4 explorer OFFLINE  

explorer

    Space Invader

  • 12 posts

Posted Sun Sep 16, 2018 6:08 AM

I recommend you to look this thread: D.K. VCS Source

 

It contain all the .h files. And more.



#5 Tjoppen OFFLINE  

Tjoppen

    Chopper Commander

  • 221 posts

Posted Wed Oct 3, 2018 1:57 AM

There's a vcs.h with a permissive license floating around somewhere, I think SvOlli knows where. macro.h on the other hand I can't say, but there's not terribly much in there



#6 Tjoppen OFFLINE  

Tjoppen

    Chopper Commander

  • 221 posts

Posted Wed Oct 3, 2018 2:03 AM

It was part of my IRC backlog even:

 

11:19 < tjoppen> I feel like a new vcs.h with a good license may be in order
12:34 < SvOlli> tjoppen: you might want to check the vcs.inc from my releases. Also comes with a lot of nice infos like what bits are used, what the bits in NUSIZx do, etc.
12:36 < tjoppen> sounsd nice
12:37 < tjoppen> I just keep tabbing back and forth between stella.pdf
12:37 < SvOlli> http://xayax.net/2k_.../2kisnolimit.7z
12:37 < SvOlli> for example, contains vcs.inc
 

You all should drop by in #vcsdev on IRCnet btw



#7 Joe Musashi OFFLINE  

Joe Musashi

    Moonsweeper

  • 309 posts

Posted Wed Oct 3, 2018 10:39 AM

For convenience here's the link to the DASM SVN folder that contains macro.h and vcs.h.
 
https://sourceforge....ines/atari2600/
 

I recommend you to look this thread: D.K. VCS Source
 
It contain all the .h files. And more.

 
The D.K. VCS source does not contain the original macro.h anymore. Some of its functions are available in libvcs.asm.
libvcs.asm mostly is focused on fast prototyping. Generating a minimal kernel with it can look like this:
 
; ********************************************************************
;
;  libvcs.asm Demo
;
;  Andreas Dietrich 10/3/2018
;
; ********************************************************************

                PROCESSOR 6502

        	INCLUDE vcs.h
		INCLUDE libvcs.asm

                ORG ROMStart

; ********************************************************************
	
Start:		RESET			; initialize RAM and registers

; --------------------------------------------------------------------

VSync:          VERTICAL_SYNC		; produce sync signal and set timer
 
; --------------------------------------------------------------------

VBlank:		lda     INTIM		; wait for end of vblank area
                bne     VBlank

; --------------------------------------------------------------------

Kernel:         sta     WSYNC		; wait for next line
                sta     VBLANK		; and turn off vblank (A=0)

                ldy     #192		; draw colored lines
DisplayLoop:	sty     WSYNC
                sty     COLUBK
                dey
                bne     DisplayLoop

; --------------------------------------------------------------------

Overscan:       OVERSCAN		; overscan on, clear channels, set timer

OverscanEnd:    lda     INTIM		; wait for end of overscan
        	bne     OverscanEnd
                jmp     VSync

; ********************************************************************

ROMStart = $F000
ROMSize  = $0800

                ORG ROMStart + ROMSize - 3*2
        
NMI:            WORD    ROMStart
Reset:          WORD    ROMStart
IRQ:            WORD    ROMStart


Unfortunately, libvcs is poorly documented. Some day when I find the time, I'll make some tutorials.

Attached File  LibVCSDemo.bin   2KB   22 downloads
Attached File  LibVCSDemo.zip   8.64KB   22 downloads




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users