Search found 928 matches

by a31chris
Sun Feb 23, 2014 6:45 pm
Forum: Atari Jaguar Programming
Topic: Linking C with ASM on the Jaguar(Boz's Jagdev Environment)
Replies: 1
Views: 3009

Linking C with ASM on the Jaguar(Boz's Jagdev Environment)

Linking C with ASM by SubQMod As per boz's suggestion, here is a small tutorial on parameter passing between C and Assembler. Just wrote it in 20 minutes so apologies if it doesn't make sense. Please ask away if you have questions: Parameter Passing from C to ASM Using Belboz's Jagdev Environment T...
by a31chris
Fri Feb 21, 2014 8:14 am
Forum: Atari Jaguar Programming
Topic: Hello.c
Replies: 5
Views: 3477

Re: Hello.c

Thats fantastic Tursi. Thanks! *(unsigned short int *) 0xf00400 = 0x0000; /* Color reg 0 = black */ *(unsigned short int *) 0xf00402 = 0xffff; /* Color reg 1 = white */ A pointer without a variable assigned to it. Is this sort of like a poke statement in basic? Poke x0000 into 0xf00400 and make sur...
by a31chris
Fri Feb 21, 2014 8:10 am
Forum: Atari Jaguar Programming
Topic: Hello.c
Replies: 5
Views: 3477

Re: Hello.c

So the frame buffer is set up in the extern void *vidmem pointer right? Thats a function already pre-configured and included with the Jag C setup I guess? No, not exactly. It's just a reserved block of memory. It's reserved in STARTUP.S near the bottom of the file: _vidmem: .ds.b 64000 The '_' is n...
by a31chris
Fri Feb 21, 2014 8:07 am
Forum: Atari Jaguar Programming
Topic: Hello.c
Replies: 5
Views: 3477

Re: Hello.c

My first specific question from the above code. In the first pass it passes the character 'H' from 'Hello Jag users! ' So the line : charloc = ch * F_CHARSIZE; translates to 'charloc = 'H' * 0x08; Is this multiplying the character H by 0x08 hexadecimal? I'm not following this line all that clearly....
by a31chris
Fri Feb 21, 2014 8:01 am
Forum: Atari Jaguar Programming
Topic: Hello.c
Replies: 5
Views: 3477

Re: Hello.c

It's really great that Belboz has posted these examples and even better that someone is putting them to use. A simple breakdown would be: DrawCharLine - check to see if the pixel in the font is greater than one, if so, set the corresponding screen pixel to 1 as well. In effect making it display a c...
by a31chris
Fri Feb 21, 2014 8:00 am
Forum: Atari Jaguar Programming
Topic: Hello.c
Replies: 5
Views: 3477

Re: Hello.c

One thing that might help - the Jag doesn't really do fonts. What happens there is it's just drawing a bunch of 2d rectangles that happen to look like letters - the DrawCharLine function takes one horizontal line from that rectangle, and converts the monochrome 1-bit picture into 8 pixels in the fr...
by a31chris
Fri Feb 21, 2014 7:58 am
Forum: Atari Jaguar Programming
Topic: Hello.c
Replies: 5
Views: 3477

Hello.c

A discussion of the Hello.c program included with the Hillsoftware Atari Jaguar SDKs and how it works. #include"font.h" extern void *vidmem; unsigned char *jagscreen; void DrawCharLine (int charloc, int screenloc) { static unsigned char shift[] = { 7, 6, 5, 4, 3, 2, 1, 0 }; int xcnt; for (xcnt = 0; ...
by a31chris
Fri Feb 21, 2014 7:55 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Re: Jag 256

Those are the 256 color values for each palette entry. 256 buckets of paint with those numbers being the "color" of paint in them pic.raw is the image. It is 64000 bytes. 320x200 picture (320 times 200 is 64000). First byte in pic.raw is which color register to use to draw the top left pixel of the...
by a31chris
Fri Feb 21, 2014 7:51 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Re: Jag 256

Found setpalette but not sure what's its doing. I need some instruction on that. And as for the original question, I dont know. You can let me off the hook anytime now. Sorry, I missed your last reply. You were correct - the image being overwritten would be in ROM. So you'd get the picture on scree...
by a31chris
Fri Feb 21, 2014 7:47 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Re: Jag 256

I'll give it a go using my basic understanding... void SetPallete(void) { int x; unsigned long add=0xf00400 - Value representing the start address of the Jag's Colour Look-Up Table (CLUT). for(x=0;x<256;x++) { - Run the following 256 times. *(unsigned short int *) add = pallete[x]; - Casts add to a...
by a31chris
Fri Feb 21, 2014 7:43 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Re: Jag 256

Nothing is automatic on the Jaguar. All this does is include the file "pic.raw", as binary data, at this point in the output file. The assembly language function titled "; Write a standard BITMAP object" writes a bitmap object to the OP which includes a pointer to this data. That makes the picture ...
by a31chris
Fri Feb 21, 2014 7:41 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Re: Jag 256

In this _vidmem defining a space of 64kbits is commented out. Earlier the vidmem is defined as this:

Code: Select all

_vidmem:        .incbin "pic.raw"
So this automatically sets the pictures as background?
by a31chris
Fri Feb 21, 2014 7:40 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Re: Jag 256

pal16.h unsigned short int pallete[]={ 0x0000, 0xffff, 0x418d, 0xf6b3, 0xdad0, 0x93dc, 0xe45c, 0x6a93, 0xeda6, 0x7b58, 0xcbd3, 0x5a93, 0xc51b, 0x6b16, 0x0841, 0x2107, 0x1083, 0x18c5, 0x318b, 0xbe22, 0x9d26, 0x7c1f, 0x0041, 0x10c5, 0x18c7, 0xf7fd, 0x0883, 0xa66b, 0x9f6b, 0x6b5a, 0xa6ec, 0x21ca, 0x84a...
by a31chris
Fri Feb 21, 2014 7:40 am
Forum: Atari Jaguar Programming
Topic: Jag 256
Replies: 6
Views: 3579

Jag 256

This thread is for a discussion of Belboz's Jag256 program. This is a quick demonstration program that Mike Hill(Belboz) put together to demonstrate how the Atari Jaguar sets up a simple graphics display. http://www.hillsoftware.com/files/atari/jaguar/jag256.zip This thread will not include a listin...
by a31chris
Tue Feb 18, 2014 9:37 am
Forum: Atari Jaguar Programming
Topic: Jaguar programming tips and tricks
Replies: 10
Views: 7596

GPU in Main bug workaround rules

Discovered or perhaps rediscovered around 2006 by AtariOwl and Gorf here are the rules for working around the bug that stops the GPU from successfully running code out of main memory: RISC in Main RAM rules: Here they are in a nutshell. Definition: Page is one block of 256 bytes. All JUMP Instructi...
by a31chris
Tue Feb 18, 2014 5:23 am
Forum: Atari Jaguar Programming
Topic: Getting started with Jaguar programming.
Replies: 3
Views: 8673

Getting started with Jaguar programming.

Software Developers Kits You can develop on the Jaguar with almost any home computer(PC with Windows or Linux, Mac OSX). Belboz hosts Atari Jaguar SDKs that can get anyone started here: My Jag files are at http://www.hillsoftware.com/files/atari/jaguar/ I have a bootable linux CD up (two of em actu...
by a31chris
Tue Feb 18, 2014 5:00 am
Forum: Atari Jaguar Programming
Topic: Jaguar programming tips and tricks
Replies: 10
Views: 7596

Display List Tricks

Here is the programmer of Super Burnout Olliver Nallet's recounting of a Display List trick he used to get an incredible number of sprites on screen at once: Because there was only 4 KB of memory on the GPU, I was hot-swapping portions of the assembly code, modules by modules, trying to reuse as mu...
by a31chris
Tue Feb 18, 2014 4:57 am
Forum: Atari Jaguar Programming
Topic: Jaguar programming tips and tricks
Replies: 10
Views: 7596

Jaguar programming tips and tricks

Some Jaguar programming tips and tricks discovered through the years. So that these things are easy to find and never lost I am creating this sticky where I will gather them as I find them or as they are pointed out. This first one may be the solution to the quoted problem: While the 68k has the bus...
by a31chris
Sun Feb 16, 2014 9:47 am
Forum: Atari Jaguar forum
Topic: Scanned & Custom Overlays
Replies: 7
Views: 2811

Re: Scanned & Custom Overlays

Never beat Cannon Fodder. Its so hard.
by a31chris
Fri Feb 14, 2014 6:23 am
Forum: 3DO Main Forum
Topic: Peace with Atarians?
Replies: 14
Views: 3486

Re: Peace with Atarians?

I would have to agree with NeoGeoNinja. That is in my experience the best explanation.
by a31chris
Wed Feb 12, 2014 12:18 am
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

It's deleted.
by a31chris
Mon Feb 10, 2014 6:55 pm
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

Now that JSII is gone just a reminder that the JSII Subreddit is there now

http://www.reddit.com/r/jaguarsector/

along with The Jaguar_Sector_II IRC chat.

http://www.sorcery.net/chat_irc.php?tabid=37

The room is #Jaguar_Sector_II

Stop in and say hi.
by a31chris
Mon Feb 10, 2014 1:20 am
Forum: Atari Jaguar forum
Topic: Robinsons Requiem.
Replies: 15
Views: 7275

Robinsons Requiem.

Am going to start working through this game. Since by myself I miss stuff I have been watching this guys YT vids. He misses stuff to but watching an episode is enough for me to get a 'hint' on how to continue a little farther without seeing everything. http://www.youtube.com/watch?v=WdUeg0M3ybQ and ...
by a31chris
Mon Feb 10, 2014 12:55 am
Forum: Atari Jaguar forum
Topic: Jaguar/skunkboard debugging using m68k gcc fully functional.
Replies: 5
Views: 2127

Re: Jaguar/skunkboard debugging using m68k gcc fully functio

Since JSII is gone now forever, I will if it's ok, recreate this info here at some point soon. It was a lot of work. It was fast and easy to get started with what I posted and I don't want it to be lost.
by a31chris
Mon Feb 10, 2014 12:53 am
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

For those who don't know yet, JSII is down permanently.
by a31chris
Fri Feb 07, 2014 2:53 am
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

JSII is back up.
by a31chris
Thu Feb 06, 2014 7:16 pm
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

Yeah Trev, it will be. It's a horrible conundrum for the guy to be honest. He comes across as a bit abrasive and I think that is a combination of his actual personality and his condition. It's these very straight-talking, no-nonsense traits that, unfortunately, PPL struggle to overlook. Like he oft...
by a31chris
Wed Feb 05, 2014 7:05 pm
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

sneth wrote:Someone filed against a forum? How hilarious.

That person will be ridiculed for eternity now.
Its way pitiful.
by a31chris
Wed Feb 05, 2014 3:02 am
Forum: Atari Jaguar forum
Topic: Jaguar Sector II down
Replies: 66
Views: 16723

Re: Jaguar Sector II down

JSII is down again. Maybe for a while time as Jay seems to need a break. This time it seems someone filed a discrimination complaint against him. My guess it was Grimm as we just ended his account per his request. He was carrying on in this fashion. So Jay is taking a breather. I don't think Grimm ...