Search found 214 matches

by Janka
Sat Sep 29, 2012 2:32 am
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

Ok, now .data is at 0x800500 and .bss is at 0x800520, as it was to expect. Sound is working both with the test project and my WIP game. :) Thanks! But there's another problem possibly related to this: I cannot set RAM_TILES_COUNT to anything more than 19 in the test project (and anything more than 1...
by Janka
Sat Sep 29, 2012 12:40 am
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

Man, your really not lucky with all those weird issues! :shock: I know. Universe shows me its love by letting me through to all those tricky problems where anyone else has given up on long before. :D For certain video modes (like 3), VRAM must start at 0x100. Specifically for mode 3 with scrolling ...
by Janka
Sat Sep 29, 2012 12:34 am
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

OOOOKAY, checked with the tests project again, changed KERNEL_OPTIONS = -DVIDEO_MODE=1 -DINTRO_LOGO=1 -DCENTER_ADJUSTMENT=0 -DMODE1_FAST_VSYNC=1 into KERNEL_OPTIONS = -DVIDEO_MODE=3 -DINTRO_LOGO=0 -DMAX_SPRITES=1 -DRAM_TILES_COUNT=1 Now the test has a .data section at 0x800100 (previously none) and ...
by Janka
Fri Sep 28, 2012 11:20 pm
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

Hmm, seems stack and bss are ok with -Tbss=0x800100 in my WIP. 00004d00 <__ctors_end>: 4d00: 11 24 eor r1, r1 4d02: 1f be out 0x3f, r1 ; 63 4d04: cf ef ldi r28, 0xFF ; 255 4d06: d0 e1 ldi r29, 0x10 ; 16 4d08: de bf out 0x3e, r29 ; 62 4d0a: cd bf out 0x3d, r28 ; 61 00004d0c <wdt_init>: 4d0c: 14 be ou...
by Janka
Fri Sep 28, 2012 9:13 pm
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

It seems my tool setup chooses the wrong avr architecture for linking, avr5 instead of avr51. The linker scripts are slightly different, most importantly avr51 has 160 extended I/O registers, so setting RAM start to 0x60 instead of 0x100 will clearly make tings break on an avr51 cpu. As an interim s...
by Janka
Thu Sep 27, 2012 5:15 am
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

You are right. Sorry :oops:
by Janka
Wed Sep 26, 2012 7:02 pm
Forum: Hardware
Topic: Why does the Euzebox work at all?
Replies: 19
Views: 9866

Re: Why does the Euzebox work at all?

Oh, great! That means PAL hsync timing is possible with something like this: . HSYNC ON . 212cy/ 7.4µs audio data (done while HSYNC is on) .*****Additional pause WIDTH_ADJUST+HSYNC_ADJUST***** . HSYNC OFF . 38cy/ 1.33µs additional pause (250-212+CENTER_ADJUST-WIDTH_ADJUST/2) ***** .1440cy/ 50.28µs p...
by Janka
Wed Sep 26, 2012 6:09 pm
Forum: Programming & Software
Topic: Sound garbage with small demo
Replies: 34
Views: 7620

Re: Sound garbage with small demo

Attached is the Tests project directory after build.
by Janka
Wed Sep 26, 2012 4:54 pm
Forum: Hardware
Topic: Why does the Euzebox work at all?
Replies: 19
Views: 9866

Re: Why does the Euzebox work at all?

Well, that means timing is like the following now: . HSYNC ON . 212cy/ 7.4µs audio data (done while HSYNC is on) . HSYNC OFF . 38cy/ 1.33µs additional pause (250-212+CENTER_ADJUST) .1440cy/ 50.28µs pixel data . 47cy/ 1.64µs additional pause (47-CENTER_ADJUST) .+small number of additonal cycles for c...
by Janka
Wed Sep 26, 2012 12:23 am
Forum: Hardware
Topic: Why does the Euzebox work at all?
Replies: 19
Views: 9866

Re: Why does the Euzebox work at all?

uze6666 wrote:I'd have to revisit the numbers but the clock is 28.63636Mhz
That means pixel data is 50.29µs at 6 clocks per pixel/240 Pixels or 5 clocks per pixel/288 pixels.