Jump to content
IGNORED

DASM (or XASM) header for 2600


jp48

Recommended Posts

Hi all,

 

I'm building a system to PocketPC with PocketVCS and DASM (or XASM). I've written

programs with BatariBasic only, now I need a header for DASM (or XASM). I use

only sound, AUDF0-1,AUDC0-1,AUDV0-1, I found the addresses, here:

 


 15      AUDC0   ....1111  audio control 0
 16      AUDC1   ....1111  audio control 1
 17      AUDF0   ...11111  audio frequency 0
 18      AUDF1   ...11111  audio frequency 1
 19      AUDV0   ....1111  audio volume 0
 1A      AUDV1   ....1111  audio volume 1

 

Now I need (minimal) only sound header (if possible) for DASM or XASM which I'm able to run in PocketPC as 16-bit DOS versions using DosBOX for PocketPC.

 

So far ready: :)

 

  processor 6502
  org $1000

 

Not much, something is needed as nothing is heard, the code itself compiles without errors.

 

 

Thanks for advance !

 

 

-Jukka

Link to comment
Share on other sites

Thanks, no vcs.h needed, after some "pruning" here's the minimal (only sound) header:

 

processor 6502
org $F000

 

Then label to start, LDA/STA to correct registers ($15,$17,$19) for AUDC0,AUDF0,AUDV0,

 

What lacked my code was the end:

 

org $FFFC
.word Start

 

assuming the starting label is Start. No header files are needed, works just with DASM:

 

dasm file.asm -f3 -ofile.bin

 

But I've one more question, a "correct" timing with VBLANK (without interrupts). Anyone knows, usually takes (in Z80, NESASM etc.) three-five lines.

 

 

Thanks very much of your tips !

 

 

-jp

Edited by jp48
Link to comment
Share on other sites

But I've one more question, a "correct" timing with VBLANK (without interrupts). Anyone knows, usually takes (in Z80, NESASM etc.) three-five lines.

 

Andrew Davie's 2600 tutorials are here :-

 

http://www.atariage.com/forums/topic/33233-sorted-table-of-contents/

 

They'll take you through getting up and running on the 2600.

Link to comment
Share on other sites

Thanks, this is excellent, I've tried to find but no luck yet. I need something which

waits one frame, 1/50 (or 1/60 in PAL) of second, in NES it is

 

vwait:
lda $2002
bpl vwait

 

in MSX even

 

      halt

 

seems to work. Everything else is done, I get sounds correctly using (stupid, inaccurate) empty loops for

timing, works in Stella and PocketVCS. Also correctly created and compiled first program only using

PocketPC today, no problems, everything works. Just that tiny information, how to get 1/50 second timing.

 

Thanks !

 

-jp

 

 

 

 

Andrew Davie's 2600 tutorials are here :-

 

http://www.atariage.com/forums/topic/33233-sorted-table-of-contents/

 

They'll take you through getting up and running on the 2600.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...