Atari 7800 basic programming

Purity

The Oracle
vacBacker
Feedback
17 (100%)
Credits
2,999CR
Does anyone have any experience of programming in Atari 7800 basic? I'm trying to get my head around it to write some code for testing POKEYs but I'm struggling :-(
 

Purity

The Oracle
vacBacker
Feedback
17 (100%)
Credits
2,999CR
Sadly that didn't yield much help.

I've found two snippets of code, both look like they are written in C

http://atariage.com/forums/topic/146725-detecting-pokey
http://7800.8bitdev.org/index.php/Detecting_POKEY

This will test the random number part of the Pokey.

So far I've not been able to compile this code in either CC65 (first link) or other C compilers for the second link (DASM etc)

No idea where I am going wrong :-(

My knowledge of C is very limited so I'm a bit stuck

As far as I understand, if I can compile it, I can reference it in the Prickle 7800 BASIC program

Purity2017-04-14 20:30:46
 

philmurr

Active member
vacBacker
Feedback
46 (100%)
Credits
2,316CR
Purity said:
I've found two snippets of code, both look like they are written in C

http://atariage.com/forums/topic/146725-detecting-pokey
http://7800.8bitdev.org/index.php/Detecting_POKEY

This will test the random number part of the Pokey.

They're 6502 assembly language. Shouldn't be too hard to expand them to test more functionality of the Pokey

https://archive.org/stream/Programming_the_6502/Programming_the_6502_djvu.txt
 

philmurr

Active member
vacBacker
Feedback
46 (100%)
Credits
2,316CR
There are some variables that you need to declare in zero page (pokeybaselo, pokeybasehi and pokeydetected) and (PAUDCTL, PSKCTL, PRANDOM, gamepokeydetected) otherwise the assembler will fail.

Edit: sorry to clarify, paudctl, pskctl & prandom are addresses used to communicate with the pokey, they're defined in the programme at http://7800.8bitdev.org but not in the other
philmurr2017-04-14 21:15:41
 
Top