Search found 141 matches

by 8bit-Dude
Thu Dec 20, 2018 3:17 pm
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

Re: CC65 to DSK

Thanks for the rapid answers, I hugely appreciate this amazing level of support! The bitmap was generated with: PictConv -f7 -d0 -o2 river256.png river.raw I managed to get the bitmaps saved on the disk using header. header river.raw build/river.com $A000 I wrote onto disk together with CC65 code: t...
by 8bit-Dude
Thu Dec 20, 2018 10:36 am
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

Re: CC65 to DSK

I see! I will try header on the binary file tonight.
By the way, the AIC mode in PictConv seems broken. Using the -f7 flag, I only get B/W images.
by 8bit-Dude
Thu Dec 20, 2018 10:02 am
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

Re: CC65 to DSK

Alright, but say I have a just a memory buffer (8000 bytes of screen data).
How should I make this into a tap file? Does it need a load address as the first 2 bytes??
by 8bit-Dude
Thu Dec 20, 2018 2:07 am
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

Re: CC65 to DSK

The library seems to work just fine, but now the question is: how to add data files to a DSK in the first place? tap2sdk seems to only allow 1 file as input (I cannot append a list of data files to the DSK). I tried generating a DSK header+tap2dsk+old2mfm, then used this JAVA app (http://forum.defen...
by 8bit-Dude
Thu Dec 20, 2018 1:44 am
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

What is even better is that this system can be generalized to any 8bit system with a spare I/O port. And with still 5 free pins on the Arduino, I can still add a joystick! :D Once the proof of concept is done, and associated CC65 libraries implemented, I may talk to someone like Lotharek to see if t...
by 8bit-Dude
Wed Dec 19, 2018 5:28 pm
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

Good tip!! I will make sure to add something to that effect when switching Port A to input mode.
I assume that in output mode there is no such issue, right?
by 8bit-Dude
Wed Dec 19, 2018 5:09 pm
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

Today's update: I managed to get the ACK pin working, and can now stream bytes up/down between the Atmos and Arduino (and thus the internet!). As an example, the attached screenshot shows the ATMOS receiving the server list from my website (via a UDP request). Next I will write a more generic set of...
by 8bit-Dude
Wed Dec 19, 2018 11:12 am
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

I will try tonight, and see where it gets me!
by 8bit-Dude
Wed Dec 19, 2018 10:16 am
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

Something like this?

.wait_ack
LDA $030D
AND #$02 ; Test if flag CA1 = 1 (%00000010)
BEQ .wait_ack
by 8bit-Dude
Wed Dec 19, 2018 10:08 am
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

Re: CC65 to DSK

Sweet!!! Thanks a lot ISS! :D
Please can you also take a look at the Network thread? I have a question about ACK.
by 8bit-Dude
Wed Dec 19, 2018 9:59 am
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

Update: I got the output side all figured out (using table system). So now I want to read data back from the Arduino, with: (1) Send a byte (170) that means "please send me data". (2) Set Port A to Listen with: POKE(0x0303, 0); (3) Wait for change on ACK (pin 19). (4) Read a byte with: PEE...
by 8bit-Dude
Wed Dec 19, 2018 1:13 am
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Re: Networking Orics.

@iss: Thanks for posting your arduino code.
It made me smile that our solutions look almost identical!
For now I will focus on the printer port approach, trying to integrate ethernet+joystick in one package.
by 8bit-Dude
Wed Dec 19, 2018 1:10 am
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

Re: CC65 to DSK

@iss: Thanks for the config file. It worked after I set a value for the __START_ADDRESS__ ($0501) It is long winded, but with the following commands I can get a working disk: cl65 -o hello.bin -Cl -O -t atmos -C atmosc.cfg hello.c header hello.bin hello.bin $0501 tap2dsk -iHELLO.COM hello.bin hello....
by 8bit-Dude
Tue Dec 18, 2018 3:57 pm
Forum: General Discussion
Topic: Networking Orics.
Replies: 56
Views: 46361

Networking Orics with an Arduino

First evening spent on this new project! I connected the ethernet arduino to the printer port, and sent bytes (for example 13) with the command: POKE #0301,13:POKE #0300,175 The arduino reads a single byte each time the strobe line goes off. Currently, passing the value 13 triggers sending of a UDP ...
by 8bit-Dude
Tue Dec 18, 2018 3:44 pm
Forum: Cross development tools
Topic: CC65 to DSK
Replies: 85
Views: 66495

CC65 to DSK

Hey Guyz, I just released a new online game for the Apple//e, Atari, and C64 (see: http://forum.defence-force.org/viewtopic.php?f=23&t=1904) The game was programmed with CC65, and I am now starting the ATMOS port. I have a few questions, the first of which is: what is the best way to pack the ou...