CC65 to DSK

Questions, bug reports, features requests, ... about the Oric Software Development Kit. Please indicate clearly in the title the related element (OSDK for generic questions, PictConv, FilePack, XA, Euphoric, etc...) to make it easy to locate messages.

User avatar
ibisum
Wing Commander
Posts: 1117
Joined: Fri Apr 03, 2009 8:56 am

Re: CC65 to DSK

Post by ibisum » Sat Apr 20, 2019 3:49 pm

Looks great - can't wait for a playable demo!

User avatar
8bit-Dude
Pilot Officer
Posts: 74
Joined: Tue Mar 14, 2017 1:33 pm
Location: Japan

Re: CC65 to DSK

Post by 8bit-Dude » Tue Apr 23, 2019 3:53 pm

Progressing quite fast now, I got the text printing functions and sprites mostly finalized.
Next will be sfx/music and joystick (any resources online on how music tracks can be programmed??).

I am posting the current 8bit-Unity demo DISK, just to keep you updated...
Attachments
8bit-Unity-Banner.PNG
8bit-Unity-Text.PNG
demos-atmos.dsk
(131.5 KiB) Downloaded 30 times

User avatar
ibisum
Wing Commander
Posts: 1117
Joined: Fri Apr 03, 2009 8:56 am

Re: CC65 to DSK

Post by ibisum » Tue Apr 23, 2019 5:14 pm

Wow, looks so cool .. I can't wait to play it! :)

User avatar
8bit-Dude
Pilot Officer
Posts: 74
Joined: Tue Mar 14, 2017 1:33 pm
Location: Japan

Re: CC65 to DSK

Post by 8bit-Dude » Wed Apr 24, 2019 12:32 am

ibisum wrote:
Tue Apr 23, 2019 5:14 pm
Wow, looks so cool .. I can't wait to play it! :)
For now I am concentrating on 8bit-unity, my cross-platform game SDK (which people can use to develop games).

But once that is done, I need to progress on the 8bit-Hub project to have an ethernet adapter for 8bit-Slicks, so it can be playable online.

User avatar
8bit-Dude
Pilot Officer
Posts: 74
Joined: Tue Mar 14, 2017 1:33 pm
Location: Japan

Re: CC65 to DSK

Post by 8bit-Dude » Wed Apr 24, 2019 12:35 am

I have a technical question: cc65 only has a profile for the Atmos. I tried running atmos binaries on oric 1, and found that text works but not hires.
What are the differences between oric 1 and atmos, from a programming pov?

User avatar
8bit-Dude
Pilot Officer
Posts: 74
Joined: Tue Mar 14, 2017 1:33 pm
Location: Japan

Re: CC65 to DSK

Post by 8bit-Dude » Wed Apr 24, 2019 12:36 am

(sorry, my cellphone created extra posts which I can't delete)

User avatar
Chema
Game master
Posts: 2480
Joined: Tue Jan 17, 2006 10:55 am
Location: Gijón, SPAIN
Contact:

Re: CC65 to DSK

Post by Chema » Wed Apr 24, 2019 7:44 am

The C library is probably calling ROM routines directly. As the Oric 1 has totally different entry points and routine organization, the same code won't work.

It is possible to make code that detects the machine type at the expense of some CPU cycles, but I am not sure that all the needed ROM routines have their counterparts on the Oric 1 ROM.

User avatar
Symoon
Archivist
Posts: 1695
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France
Contact:

Re: CC65 to DSK

Post by Symoon » Wed Apr 24, 2019 9:12 am

I second Chema.
Would be interesting to have examples of what is "not working", but it's probably due to ROM version, since there should be no hardware difference.

User avatar
8bit-Dude
Pilot Officer
Posts: 74
Joined: Tue Mar 14, 2017 1:33 pm
Location: Japan

Re: CC65 to DSK

Post by 8bit-Dude » Wed Apr 24, 2019 2:11 pm

Symoon wrote:
Wed Apr 24, 2019 9:12 am
Would be interesting to have examples of what is "not working", but it's probably due to ROM version, since there should be no hardware difference.
That sound promising! By the way, is there a useful register that can tell me whether I am running an Oric-1 or Atmos ROM?

User avatar
Symoon
Archivist
Posts: 1695
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France
Contact:

Re: CC65 to DSK

Post by Symoon » Wed Apr 24, 2019 2:44 pm


User avatar
8bit-Dude
Pilot Officer
Posts: 74
Joined: Tue Mar 14, 2017 1:33 pm
Location: Japan

Re: CC65 to DSK

Post by 8bit-Dude » Wed Apr 24, 2019 2:59 pm

Symoon wrote:
Wed Apr 24, 2019 2:44 pm
See there ;)
viewtopic.php?f=25&t=1916
Awesome! Looks like all my code so far runs on both Oric-1 and Atmos, just by adding this code:

Code: Select all

	// Switch to Hires mode
	if PEEK((char*)0xC800) {
		asm("jsr $EC33");
	} else {
		asm("jsr $E9BB");
	}
(I will keep in mind that ROMs differ, I found a useful PDF by Geoff Phillips that gives both sets of addresses)

Next question: are there resources for MUSIC playback on the Oric?

User avatar
Symoon
Archivist
Posts: 1695
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France
Contact:

Re: CC65 to DSK

Post by Symoon » Thu Apr 25, 2019 6:50 am

8bit-Dude wrote:
Wed Apr 24, 2019 2:59 pm
Next question: are there resources for MUSIC playback on the Oric?
I'll let experts reply here, music is a part of the Oric I have never explored yet ;)

User avatar
NekoNoNiaow
Flight Lieutenant
Posts: 272
Joined: Sun Jan 15, 2006 10:08 pm
Location: Montreal, Canadia

Re: CC65 to DSK

Post by NekoNoNiaow » Sat Apr 27, 2019 3:31 am

8bit-Dude wrote:
Wed Apr 24, 2019 2:59 pm
Next question: are there resources for MUSIC playback on the Oric?
A search for "music player" or "tracker" in the search box on the top right will probably give you all the answers you need. ;)

User avatar
Dbug
Site Admin
Posts: 2983
Joined: Fri Jan 06, 2006 10:00 pm
Location: Oslo, Norway
Contact:

Re: CC65 to DSK

Post by Dbug » Sat Apr 27, 2019 7:16 pm

Regarding music, it's a complicated topic.

Accessing the YM chip is not very complicated, so doing sound effects and stuff like that is not very difficult, the problem with music is that all we have are either tools from Twilighte (that few people know how to use), the STSound -> MYM player which is not particularly CPU/memory efficient, or some custom minimalist players like the one Chema wrote for Oricium or myself for the "Happy Birthday" song in the 30th year demo.

There's also the Midi player from Fabrice on top, as well as some other variants by Wascol and other.

User avatar
ibisum
Wing Commander
Posts: 1117
Joined: Fri Apr 03, 2009 8:56 am

Re: CC65 to DSK

Post by ibisum » Sun Apr 28, 2019 12:28 pm

I've always thought it'd be nice to have an SFXR-like interface for Oric sounds. Twilighte wrote that simple "synth one-liner" generator, which was also pretty nifty as it allowed you to just bung some register values into a program and get astonishing results, but I've been unable to find where I saved it, so many years ago .. and then there was that "ORIC ROM Sound Seed" experiment, which was pretty binoculars great because it, too, meant fabulous sound results from very minimal initial inputs ..

Post Reply