Search found 2670 matches

by Dbug
Thu Mar 09, 2006 1:05 pm
Forum: Games
Topic: Lode Runner and resolution problems (280 vs 240)
Replies: 2
Views: 4900

Re: Lode Runner and resolution problems (280 vs 240)

kamelito wrote:For now I'm only cleaning the C64 code to ease the port.
its a long term project, maybe as long as worms ;)
Or Dungeon Master :p
by Dbug
Tue Mar 07, 2006 5:37 pm
Forum: Demos
Topic: Proof Of Concept demo: Hardware VSync + Double Buffering
Replies: 9
Views: 17306

In theory VSync has been present for a long time, I know that it is in version 1004 and 1006, so I guess it must be in 1005 too :)

Press F1 to enter main menu, and then go on the 'enable sync to tape' , this should work :)
by Dbug
Tue Mar 07, 2006 1:02 am
Forum: Demos
Topic: Proof Of Concept demo: Hardware VSync + Double Buffering
Replies: 9
Views: 17306

Proof Of Concept demo: Hardware VSync + Double Buffering

A small something I started in 2004 and finished recently:
http://www.pouet.net/prod.php?which=24190

Have fun :)

(and don't forget to enable the hardware vsync on your machines else the animation will not work at all)
by Dbug
Sun Mar 05, 2006 4:37 pm
Forum: Cross development tools
Topic: Routines in Zero Page
Replies: 5
Views: 8529

After having done some experimentations, it appears that using the sections things does not work very well. So use .zero only for defining adresses in zero page. For the code, I tried this, and it seems to work: ; Some code here SomeRoutine1 lda foo sta bar rts ; Defines a label to mark the begining...
by Dbug
Thu Mar 02, 2006 12:31 pm
Forum: C programming
Topic: CC65 vs OSDK ?
Replies: 12
Views: 17294

There is a domain in which RCC16 can be improved thus, it's the handling of 8 bits values.

I wonder how CC65 deals with that, but at least RCC16 backend generates lots of 16 bits operations for what is only 8 bits values.
by Dbug
Wed Mar 01, 2006 7:40 pm
Forum: Cross development tools
Topic: [RCC16] Code optimizer
Replies: 8
Views: 11241

I'm rather surprised with the results of the benchmarking under progress, because at the time I wrote the 16-bit 6502 backend for the Retargetable C Compiler (Hanson & Fraser), cc65 was largely below, both in terms of time and space quality. Also, cc65 wasn't ANSI compliant, and even had problems w...
by Dbug
Wed Mar 01, 2006 7:36 pm
Forum: C programming
Topic: [RCC16] Error with static function pointers
Replies: 4
Views: 8156

Nope, didn't tried that.
For what I know I'm using O2 as default optimisation setting because I was used to get bad generated code from time to time with O3
by Dbug
Sun Feb 26, 2006 2:25 pm
Forum: Cross development tools
Topic: [RCC16] Code optimizer
Replies: 8
Views: 11241

Ok, I made a side by side comparison of the number of lines (including empty lines in my case, do not know for you): Name CC65 RCC16 contiki-main 74 64 contiki 1473 2539 ctk-conio 3137 7956 ctk 4614 644 dispatcher 569 976 ek 1081 1936 petsciiconv 416 360 programs 151 238 strncasecmp 43 ? I don't und...
by Dbug
Sun Feb 26, 2006 2:12 pm
Forum: C programming
Topic: CC65 vs OSDK ?
Replies: 12
Views: 17294

From what I tested so far, it seems that CC65 generates a way better code than RCC16. Could you put the generated assembly source code as a download somewhere so I can do an accurate comparison of how CC65 and RCC16 compiles stuff ? Just for the fun, I tried to put the output of RCC16 through "opt65...
by Dbug
Fri Feb 24, 2006 9:36 pm
Forum: Cross development tools
Topic: [RCC16] Code optimizer
Replies: 8
Views: 11241

Fat as in the binary takes a lot of memory? Using cc65 and the default makefile (i.e. with almost no applications or modules), the binary is 17945 bytes including TAP header. What do you get with ODSK? Well, considering that the OSDK is not really makefile oriented, I just dropped all the .C and .H...
by Dbug
Fri Feb 24, 2006 12:10 am
Forum: Cross development tools
Topic: [RCC16] Code optimizer
Replies: 8
Views: 11241

[RCC16] Code optimizer

I finaly managed to compile Contiki, and it even runs. Not particularly well, and it is quite FAT (well I am not sure that I managed to include the very same modules than what Carlsson included, anyway). One reason of this fatness, is due to the way the opcodes are generated from a pseudo assembly l...
by Dbug
Thu Feb 23, 2006 11:27 pm
Forum: C programming
Topic: [RCC16] Error with static function pointers
Replies: 4
Views: 8156

Ok, I found out the difference between using static or not in the above code.

Without static we got that:

Code: Select all

_pf
	DW(_r1)
_r1
	RET
_main
	RET
while with static we got this:

Code: Select all

_pf
	DW(Ltest65)
Ltest66
	RET
_main
	RET
Obviously there is something bad in the label allocation.
by Dbug
Thu Feb 23, 2006 11:07 pm
Forum: C programming
Topic: [RCC16] Error with static function pointers
Replies: 4
Views: 8156

[RCC16] Error with static function pointers

I have been trying to compile Contiki with the OSDK, and got many problems, some I solved by hacking, some by correcting problems in the compiler/assembler/linker, but some I failed to solve, in particular some stuff in ctk.c that basicaly do the following: static void r1(); void (*pf)()=r1; static ...
by Dbug
Thu Feb 23, 2006 1:20 pm
Forum: C programming
Topic: CC65 vs OSDK ?
Replies: 12
Views: 17294

CC65 vs OSDK ?

So far we had no really significant set of data allowing us to efficiently compare the quality of CC65 compared to the C compiler used in the OSDK. Interesting comparison points are: - ANSI compatibility - Size of generated code - Speed of generated code I guess I could try to recompile Contiki usin...
by Dbug
Tue Feb 21, 2006 4:36 pm
Forum: Operating systems
Topic: Contiki on Oric Atmos?
Replies: 13
Views: 20538

Yep, so far there is not much things to do with it, but at least it works :)

I guess we could also probably try to find a way to draw nice window borders instead of + = and | :lol:

And yes, with 28 usable lines the Oric is definitively one of the machines that can display the most things.