Creativsion support added to cc65

Talk about programming CreatiVision (except games programming). Projects of homebrew hardware are also welcome.
sannyx
Posts: 9
Joined: Tue Feb 07, 2017 2:06 pm

Creativsion support added to cc65

Postby sannyx » Wed Feb 22, 2017 12:15 pm

Hi,

since last week cc65 supports the CV "out of the box".

Compile with -t creativsion, like "cl65 -t creativision -o rom.bin prog.c".

The joystick driver still needs some work, currently it doesn't detect combined directions (e.g. left/up or right/down).

Many thanks to cvemu (I think that's @username@ over here) for the inital port.

regards,
chris

User avatar
MADrigal
Site Admin
Posts: 912
Joined: Sun Sep 15, 2013 1:00 pm
Contact:

Re: Creativsion support added to cc65

Postby MADrigal » Thu Feb 23, 2017 11:24 am

Good stuff!!!!

sannyx
Posts: 9
Joined: Tue Feb 07, 2017 2:06 pm

Re: Creativsion support added to cc65

Postby sannyx » Wed Mar 08, 2017 12:52 pm

Joystick driver is fixed in latest cc65 git version or tomorrow's snapshot.

Note that https://sourceforge.net/projects/creativisionemulator uses wrong values for diagonal joystick movement, so there still only left/right/up/down work, and no combination of them.

I works on a real CV console.

User avatar
Scouter3d
Posts: 264
Joined: Mon Jun 28, 2010 7:02 am
Location: Wien
Contact:

Re: Creativsion support added to cc65

Postby Scouter3d » Wed Mar 08, 2017 3:20 pm

Hi,

I hope you are aware, that the CV Joystick has 16 directions... 8 directions and their combinations...
like UP, UP-DIAG_RIGHT, DIAG_RIGHT, DIAG_RIGHT-RIGHT, RIGHT...
Games become very hard to steer if the "inbetweens" are not considered...

Greetings, TOM:0)

User avatar
Scouter3d
Posts: 264
Joined: Mon Jun 28, 2010 7:02 am
Location: Wien
Contact:

Re: Creativsion support added to cc65

Postby Scouter3d » Wed Mar 08, 2017 3:32 pm

Hi again,

I would love to see the cc65 for the Creativision grow into an even easier toolset for the CV (Easy Graphic libraries, Sprite libraries, Sound, maybe even Scrolling?) So that it would be "easy" to program (small) games in C without the need of Assembly Code (i can´t come to grips with assembly since 1984, but then again i haven´t tried very hard ;0))

TOM:0) dreaming of being able to program his own games for the CV ;0)

sannyx
Posts: 9
Joined: Tue Feb 07, 2017 2:06 pm

Re: Creativsion support added to cc65

Postby sannyx » Wed Mar 08, 2017 5:55 pm

Scouter3d wrote:I hope you are aware, that the CV Joystick has 16 directions... 8 directions and their combinations...
like UP, UP-DIAG_RIGHT, DIAG_RIGHT, DIAG_RIGHT-RIGHT, RIGHT...
Games become very hard to steer if the "inbetweens" are not considered...



Yes, I'm aware of that. And that is fully supported by the cc65 joystick driver.

I'm just noticed that on creativisonemulator, e.g. address at $11 (direction of left joystick) contains "wrong" values for diagonal positions.

These are the possible values, found out with the zpvars-test-new.rom program from the other thread:

Code: Select all

; port values: (compass points)
; N      -  $49 - %01001001
; NNE    -  $48 - %01001000
; NE     -  $47 - %01000111
; ENE    -  $46 - %01000110
; E      -  $45 - %01000101
; ESE    -  $44 - %01000100
; SE     -  $43 - %01000011
; SSE    -  $42 - %01000010
; S      -  $41 - %01000001
; SSW    -  $40 - %01000000
; SW     -  $4F - %01001111
; WSW    -  $4E - %01001110
; W      -  $4D - %01001101
; WNW    -  $4C - %01001100
; NW     -  $4B - %01001011
; NNW    -  $4A - %01001010
; center -  $00 - %00000000


But diagonal postions in creativisionemulator have the MSB set, so values in the $80 range.

regards,
chris

sannyx
Posts: 9
Joined: Tue Feb 07, 2017 2:06 pm

Re: Creativsion support added to cc65

Postby sannyx » Wed Mar 08, 2017 5:58 pm

Scouter3d wrote:I would love to see the cc65 for the Creativision grow into an even easier toolset for the CV (Easy Graphic libraries, Sprite libraries, Sound, maybe even Scrolling?)



Yes. But if the functions are too special they might not become part of the cc65 runtime lib. But we always could create a separate addon lib.

regards,
chris


Return to “Homebrew software and hardware (excluding games)”

Who is online

Users browsing this forum: No registered users and 1 guest

cron