Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

A little help with programming...

 
   Games (Home) -> Vectrex RSS
Next:  Vectrex Related  
Author Message
Sebastian Tomczak

External


Since: Sep 29, 2008
Posts: 3



(Msg. 1) Posted: Sun Dec 28, 2008 4:26 pm
Post subject: A little help with programming...
Archived from groups: rec>games>vectrex (more info?)

Hi guys,
I'm very sorry to bother you all, but I was wondering if there was
someone who might be able to donate a small amount of time to help me
with a particular programming issue that I am having.

If anyone is able to have a quick look at something, could you please
email me at seb.tomczak.DeleteThis@gmail.com.

I would really appreciate it, but I do realise that we are all busy
people - so thanks for reading this message at any rate.


Kind regards,
Sebastian Tomczak
Adelaide, Australia
Back to top
Login to vote
McLeod/IdeaFix

External


Since: Dec 20, 2008
Posts: 6



(Msg. 2) Posted: Sun Dec 28, 2008 4:52 pm
Post subject: Re: A little help with programming... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 29 dic, 01:26, Sebastian Tomczak <seb.tomc....RemoveThis@gmail.com> wrote:
> Hi guys,
> I'm very sorry to bother you all, but I was wondering if there was
> someone who might be able to donate a small amount of time to help me
> with a particular programming issue that I am having.

Could you be more specific?
Back to top
Login to vote
Sebastian Tomczak

External


Since: Sep 29, 2008
Posts: 3



(Msg. 3) Posted: Sun Dec 28, 2008 6:02 pm
Post subject: Re: A little help with programming... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> > Hi guys,
> > I'm very sorry to bother you all, but I was wondering if there was
> > someone who might be able to donate a small amount of time to help me
> > with a particular programming issue that I am having.
>
> Could you be more specific?

Certainly. But to begin with - I have to point out that I am not a
programmer, so please be gentle!

I'm trying to write data to the AY38912 via the two controller ports.
I guess there a few ways of doing this, but I was thinking one way
would be to use the eight buttons as a byte. This byte is split up
into a high "control" nibble and a low "data" nibble. The control
nibble has a write bit, a data type bit and a nibble type bit. This
determines what should be done with the data.

First, a high nibble of data is written. The vectrex shifts this
nibble left, and saves this to a RAM location, lets say $c881. Then a
low nibble of data is written. This low nibble is ord with the high
nibble and overwrites $c881. Thirdly, the address associated with the
data is written to the vectrex. The data byte which is now stored in
$c881 is loaded into B and the PSG register number is loaded into A.
This data is then written to the AY38912. Finally, $c881 is cleared,
ready for the next data byte.

I hope that all makes sense.

Anyway, so my problem is that I think it should be working, but of
course it is not. The main part of the code (ie. directly after the
header block) is posted below:

jsr CLEARSOUND

; MAIN PROGRAM
main
jsr WAITRECAL
jsr READBUTTONS
lda $c80f
bita #$80
beq begin_write
bra main

begin_write

bita #$80
beq data_type

address_type
ldb $c881
lda $c80f
anda #$0f
jsr SNDCHIP
lda #0
sta $c881
bra main

data_type
bita #$40
beq low_nibble

high_nibble
anda #$0f
lsla
lsla
lsla
lsla
sta $c881
bra main

low_nibble
anda #$0f
ora $c881
sta $c881
bra main
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Starting programming... compiler? - Hi all! I want to start to program some vectrex related stuff. I've found a lot of tutorials, example code and goodies here! Thank you all! :) I need only 2 things to know: What is the best ASM compiler for the vectrex on a PC running Windows? I will..

More YouTube stuff - Hmm, cheesy - http://www.youtube.com/watch?v=DYFIuazwPiI&search=vectrex Sebastian Tomczak's haunting 'VecArt' - http://www.youtube.com/watch?v=MuRZbjQidrI&search=vectrex This is really nice - http://www.youtube.com/watch?v=J8eZOJr5rs4&sea...

Anamiction RAM question. - Can someone explain how the de-multiplexer works in relation to accessing the onboard RAM? I'd like to design a PCB that can handle extra RAM, and bankswitching (which i've just about got my head round) for a future project. Sorry if this seems like a..

Debris EE arrived, damaged + long review - So not only is Color Clash damaged, but so Debris EE which arrived yesterday. I'm not exactly sure how this could have happened, unless it was deliberate because it just seems too much of a coincidence. The game wasn't taped in packing material, but..

various comments (a.k.a. dull monologue coming up) - Hi there , With all the comotion going on lately, here's some generic comments on various subjects. this is not targeted at any one or any post in specific, nor is it supposed to provoke heavy discussion. These are just general things. for those who're...
       Games (Home) -> Vectrex All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
  Game Forums
 Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact