Jump to content
IGNORED

Direct mode code?


Ecernosoft

Recommended Posts

Hello!

Ok, so ICT2 might be being slowed down because I'm wondering how to make the best use of the 7800.

Also, I wanted to say ICT1 is done. It's to the point where I'm happy with it. I might make more levels though.

I heard about direct mode allowing for more colors so I was wondering if someone had the source code for it and could share it with me. 

Thanks!!

 

Now, I also want to make sure that the entire source is ONE FILE.

I don't use MADS- and despite there being some files for it in another place I wasn't able to use them due to it being a multi-file program.

 

Thanks.

Edited by Ecernosoft
Link to comment
Share on other sites

22 minutes ago, SmittyB said:

The direct / indirect bit on a DLL entry doesn't affect the number of colours available to an object.

I know. In one of the other posts, someone said that using lots of sprites you could get a "Color cell" mode with more colors and (maybe?) less DMA.

The less DMA part comes from where if your tile is blank, you can point it to the holey DMA area to save on cycles.

Link to comment
Share on other sites

There is no separate 'direct mode' on the 7800. Each object is either direct or indirect based on its display list entry and the difference is that a 'direct' object's graphics pointers are the address of the graphics data, and for an 'indirect' object the pointer is to a list of offsets (essentially a tile map) from the address set by 'CHARBASE' with which to get the graphics data.
Nearly every 7800 game will use a combination of direct and indirect objects to draw the screen at various points.

  • Like 6
Link to comment
Share on other sites

5 minutes ago, SmittyB said:

There is no separate 'direct mode' on the 7800. Each object is either direct or indirect based on its display list entry and the difference is that a 'direct' object's graphics pointers are the address of the graphics data, and for an 'indirect' object the pointer is to a list of offsets (essentially a tile map) from the address set by 'CHARBASE' with which to get the graphics data.
Nearly every 7800 game will use a combination of direct and indirect objects to draw the screen at various points.

Yes there is in a way.
Direct mode= just graphics, the 16 bit ptr points to gfx data.

 

inidirect mode: the 16 bit ptr points to RAM and it acts as a row of chars 1 or 2 bytes wide, N chars long.

  • Confused 2
Link to comment
Share on other sites

Mate take a breath, you're basically the only member posting and it's constant. Also many of these simple posts which are random conversations should be DMs to Traxx. Sorry i get you're excited, however a lot of these posts have zero meat on the bone for anyone else.

  • Like 8
  • Thanks 2
Link to comment
Share on other sites

  • 4 weeks later...
On 9/4/2022 at 11:41 PM, TwentySixHundred said:

Mate take a breath, you're basically the only member posting and it's constant. Also many of these simple posts which are random conversations should be DMs to Traxx. Sorry i get you're excited, however a lot of these posts have zero meat on the bone for anyone else.

You are right

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...