Search found 80 matches

by quarn
Tue Jun 01, 2004 2:38 pm
Forum: Programming Discussion
Topic: Learning C++!
Replies: 12
Views: 903

just for the fun of it, hello world in sh4 asm: .global _main _main: sts.l pr,@-r15 mov.l printf,r0 mov.l stringaddr,r4 jsr @r0 nop lds.l @r15+, pr rts nop string: .string "Hello Dreamcast in sh4 assembly\n" stringaddr: .long string printf: .long _printf
by quarn
Sun May 30, 2004 5:26 am
Forum: Homebrew Software and Indie Games Discussion
Topic: Making Music for/on Dreamcast
Replies: 10
Views: 1132

As far as I know, the aica-chip does not generate any sounds, it just uses samples to play sound.

Though, nothing stops you from making a softsynth for soundgenerating and use that with the dreamcast. But you might as well be using a pc then..
by quarn
Sat May 29, 2004 7:20 am
Forum: Programming Discussion
Topic: CPU cache optimisations...
Replies: 12
Views: 945

Stef.D wrote:By the way, what is the GCC calling convention for SH-X cpu ?
http://msdn.microsoft.com/library/defau ... assing.asp
by quarn
Thu May 20, 2004 12:47 am
Forum: Programming Discussion
Topic: New version of KOS & SDL clashing?
Replies: 3
Views: 352

by quarn
Wed May 19, 2004 4:22 pm
Forum: Off-Topic Forum
Topic: Post your glxgears results, along with your system specs
Replies: 10
Views: 284

18157 frames in 5.0 seconds = 3631.400 FPS

CPU: AMD Athlon(tm) XP 2000+ (1668.243mhz)
RAM: 512mb
Video card: GeForce4 Ti 4400 (128mb ram, agp 4x)
Software: Linux 2.6.3, XFree86 4.3.0.1, Nvidia drivers 1.0-5336
by quarn
Tue May 18, 2004 7:01 am
Forum: Programming Discussion
Topic: Multi's VS Shift's
Replies: 22
Views: 1316

Kamjin, what's so hard about the GCC syntax?
by quarn
Tue May 18, 2004 2:42 am
Forum: Programming Discussion
Topic: Multi's VS Shift's
Replies: 22
Views: 1316

and you'll still need a -S flag when you compile if you want assembly output -save-temps will only leave the raw object files. -save-temps works for me. To quote http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Debugging-Options.html#Debugging%20Options -save-temps Store the usual "temporary" ...
by quarn
Tue May 18, 2004 1:17 am
Forum: Programming Discussion
Topic: Multi's VS Shift's
Replies: 22
Views: 1316

yea well, i dont know how to get asm output =P Send the compiler flag "--save-temps" to gcc and it will save an ".s"-file for the file you are compiling. If there is a specific section in the code you want to check you can put something like this around it to easier find it in t...
by quarn
Mon May 17, 2004 11:27 am
Forum: Programming Discussion
Topic: 2D graphics tutorial - Loading and drawing images
Replies: 55
Views: 3228

BlackAura wrote:Thanks, quarn!
No problem.. And in case you didn't spot it allready I see atleast two errors in the code I wrote. But "I'll leave that as an exercise for the reader" ;P
by quarn
Mon May 17, 2004 10:10 am
Forum: Programming Discussion
Topic: 2D graphics tutorial - Loading and drawing images
Replies: 55
Views: 3228

The better way to display an image would be to use the pvr, but since this tutorial seems to be about "manual" bytepushing here is something I wrote down from the top of my head: // Section 1: calculate acctual blitcoordinates blitEndX = min(posX + imageWidth, screenWidth); if (blitEndX ==...
by quarn
Sat May 01, 2004 4:12 pm
Forum: Programming Discussion
Topic: Katana SDK Leaked!
Replies: 56
Views: 5252

DcSteve wrote:im positive that compiling code successfully in Katana, as opposed to KOS, would produce faster and more optimized work.
They both use the same compiler.

Code smart, and don't blame the tools.
by quarn
Sat May 01, 2004 3:58 pm
Forum: Programming Discussion
Topic: Katana SDK Leaked!
Replies: 56
Views: 5252

so we can visually know its possiblities over kos And I suppose that you don't own any commercial dreamcast games? All info I need/want (well.. except for the bumpmapping) is either in kos allready or have been released recently on the net. (I'm thinking purupuru and volume modifiers. Though I have...
by quarn
Fri Apr 30, 2004 10:05 am
Forum: Programming Discussion
Topic: Katana SDK Leaked!
Replies: 56
Views: 5252

Though, if you want to use it for regular 2d-stuff, then you don't have to deal with all those "features".
by quarn
Fri Apr 30, 2004 10:02 am
Forum: Programming Discussion
Topic: Katana SDK Leaked!
Replies: 56
Views: 5252

Yeah i have no idea really how to use 3d in kos but i do some what in katana. only due to the samples. Well, as I see it, if you can't figure out how to use the pvr-stuff from the headers/sources/examples in kos, then maybe you just aren't ready to use it. If you want easy to use 3d, then take a lo...
by quarn
Wed Apr 28, 2004 1:51 am
Forum: Programming Discussion
Topic: |= and &= someone explain these please!
Replies: 27
Views: 932

i want to be able to change only the last byte of an int to a different value, that isnt f. like, if it starts as 0101 i want to change it to 0001 and if it starts at 1111 then i still want to change it to 0001. maybe someone else will understand my question.... Acctually, four bits isn't a byte it...
by quarn
Thu Mar 11, 2004 4:28 pm
Forum: Programming Discussion
Topic: Multiple .ogg files, in need of FAST help
Replies: 8
Views: 530

well, I'm not sure what the "sndoggvorbis_isplaying()" function does.. Maybe return true when a song is playing? If so, then this won't work if your previous song is playing. Banlangd>9200 is where the boss area starts so naturally I want to change the current music to boss music. Judgeing...
by quarn
Thu Mar 11, 2004 4:14 pm
Forum: Programming Discussion
Topic: Multiple .ogg files, in need of FAST help
Replies: 8
Views: 530

Re: Multiple .ogg files, in need of FAST help

I do it like this: if(banlangd>9275){ sndoggvorbis_stop(); sndoggvorbis_start("/rd/ljud/boss.ogg",1); } As soon as the program reaches this line it prints out hundreds of messages all saying: oggthread: initializing and parsing ogg oggthread: rereleased from semaphore (status=2) oggthread...
by quarn
Thu Mar 28, 2002 3:47 am
Forum: Homebrew Software and Indie Games Discussion
Topic: 1st DCEmulation Programming Contest
Replies: 11
Views: 1378

Re: 1st DCEmulation Programming Contest

DirtySanchez wrote:The submission can be a game or utility and must be at least 51% your own work, not a simple port to the DC.
What about demos? (you know, variance by haujobb, delicious by yodel etc etc)
by quarn
Fri Feb 22, 2002 1:33 pm
Forum: Programming Discussion
Topic: dreamcast 4k
Replies: 1
Views: 545

dreamcast 4k

Hello. At a demoparty in Malm?, Sweden I released a 4k for the dreamcast which came at 3rd place (although both the coders of the 1st and 2nd place, and many more I have spoken with, thought that my entry should have won :)) anyway, download it from http://www.outbreak.nu/files/demo/2002/luftvarg.zi...