Search found 60 matches

by M-374 LX
Tue Apr 03, 2012 2:17 am
Forum: Tools
Topic: Time to update to gcc 4.6.2
Replies: 42
Views: 14520

Is the advance reg set to 2 like it should be? It is, but I got exactly the same tile when attempting to set the register to different values. volatile uint *pw; pw = (uint *) GFXCNTL; ... *pw = 0x8F02; A single 32-bit write to VDP data port, like *pl = 0x22222222 , resulted in a line with the widt...
by M-374 LX
Mon Apr 02, 2012 11:56 am
Forum: Tools
Topic: Time to update to gcc 4.6.2
Replies: 42
Views: 14520

Making the pointers volatile did not work. By writing: volatile ulong *pl; pl = (ulong *) GFXCNTL; *pl = GFX_WRITE_ADDR(0); pl = (ulong *) GFXDATA; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x00000000; *pl = 0x...
by M-374 LX
Sun Apr 01, 2012 10:25 pm
Forum: Tools
Topic: Time to update to gcc 4.6.2
Replies: 42
Views: 14520

After adding the label "_start" to the beginning of the startup code and making it global, the program worked partially. The program should show a tile map and generate a PSG frequency, but it did not show the tile map. The VDP debug tool available in the emulator showed that the color were properly...
by M-374 LX
Sun Apr 01, 2012 2:44 am
Forum: Tools
Topic: Time to update to gcc 4.6.2
Replies: 42
Views: 14520

I have GCC 4.7.0.

When attempting to compile a program, I got the following warning:

Code: Select all

cannot find entry symbol _start; defaulting to 80000080
Additionally, the program (which I have compiled with SGCC before) did not work.

How can I correct it?
by M-374 LX
Sat Mar 31, 2012 3:41 am
Forum: Sound
Topic: PSG trouble
Replies: 4
Views: 1780

PSG trouble

With the help of this page , I attempted to write a C function to generate a tone by the PSG. However, I got no sound. void play_tone() { register ulong *p; p = (ulong *)0xC00011; /* 440Hz for channel 0 */ *p = 0x8E; *p = 0xF; *p = 0x90; /* Maximum volume for channel 0*/ *p = 0xBF; /* Silence on cha...
by M-374 LX
Sun Dec 13, 2009 6:26 pm
Forum: Tools
Topic: TFM Music Maker
Replies: 278
Views: 206852

When the program plays a song or instrument, it is not loud enough.
by M-374 LX
Wed Aug 20, 2008 4:17 pm
Forum: Video Display Processor
Topic: Problem with tiles
Replies: 6
Views: 3040

As I said, I think that the problem is with the positions. This is the full source: #include "genesis.h" void init_gfx(); void load_tiles(); void show_tiles(); void set_colors(); unsigned int Pal[128] = { 0x0000,0x00EE,0x0E0E,0x000E,0x0EE0,0x00E0,0x0E00,0x0888, 0x0CCC,0x0088,0x0808,0x0008,0x0880,0x0...
by M-374 LX
Tue Aug 19, 2008 7:46 pm
Forum: Video Display Processor
Topic: Problem with tiles
Replies: 6
Views: 3040

I think that the problem is with the positions of the tiles.
What are you working on btw ?
Nothing interesting.
I am just testing.
by M-374 LX
Tue Aug 19, 2008 7:36 pm
Forum: Video Display Processor
Topic: Problem with tiles
Replies: 6
Views: 3040

Shiru wrote:Nobody can answer what is wrong if you do not explain what you do and what you try to get. More information - more chances for answer.
Do you see the image?
There are some black parts where should be green.
And some green parts where should de yellow.
by M-374 LX
Tue Aug 19, 2008 6:48 pm
Forum: Video Display Processor
Topic: Problem with tiles
Replies: 6
Views: 3040

Problem with tiles

What can cause this problem with tiles?

Image

I think that the problem is with the positions of the tiles.
by M-374 LX
Tue Aug 19, 2008 3:31 pm
Forum: Sound
Topic: GYM or VGM documents
Replies: 1
Views: 1799

GYM or VGM documents

Does anyone have documents about the GYM or VGM files?
by M-374 LX
Sat Aug 16, 2008 8:30 pm
Forum: Controls
Topic: Where to find docs about joypad?
Replies: 5
Views: 4085

Where to find docs about joypad?

I searched in Google.
But I did not find documents about joypad.

Where can I find?
by M-374 LX
Tue Aug 12, 2008 2:42 am
Forum: Megadrive/Genesis
Topic: Programming in C - Some doubts
Replies: 10
Views: 4196

You didn't change the value of pw, but change the value at the address of pw. Yes, I wanted to say this. Let me see if I understood: The first value that I write to the address of pw will keep at the first position from pw ; The second value that I write to the address of pw will keep at the second...
by M-374 LX
Mon Aug 11, 2008 11:41 pm
Forum: Megadrive/Genesis
Topic: Programming in C - Some doubts
Replies: 10
Views: 4196

Why the value of *pw changes?
Why is not enough just one value?

I saw other detail, that looks clearer:

Code: Select all

    pw = (uint *) GFXDATA;
    *pw = 0;        /* color 0 - black */
    *pw = 0x0eee;   /* color 1 - white */
Why are the while and black colors being set in the same place?
by M-374 LX
Mon Aug 11, 2008 10:25 pm
Forum: Megadrive/Genesis
Topic: Programming in C - Some doubts
Replies: 10
Views: 4196

Programming in C - Some doubts

In the initialization of graphics, the code is similar to this: register uint *pw; pw = (uint *) GFXCNTL; /*P1*/ *pw = 0x8016; /*P2*/ *pw = 0x8174; *pw = 0x8230; *pw = 0x832C; /*P3*/ In P1 , it is pointing to the control port of VDP, it is right. From P2 to P3 , it is setting the VDP. Why the value ...