Author Topic: Example Platform Engine  (Read 1689 times)

TheOldMan

  • Hero Member
  • *****
  • Posts: 958
Re: Example Platform Engine
« Reply #30 on: October 12, 2011, 03:55:13 AM »
On a neo 128M w/backup, using neo2 pro manager v1.11
pce version set to US.

Quote
So what if you do...
huc -s source.c
and then
pceas -raw source.s
Yeah, that works. I just never use the -raw flag.  (I forget about it).

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: Example Platform Engine
« Reply #31 on: October 12, 2011, 04:37:09 AM »
thrush: I'm all ASM for PC-Engine coding, so if you need someone to bug via such related questions then you can add me to your list. I'm also known as Tomaitheous (and usually hang out on mednafen channel IRC, when I have time). There are some others that are active ASM only coders for PCE; MooZ, Charles MacDonald, Chris Covell to name a few. http://pcedev.blockos.org/ also might be a place you want to ask questions or such too. It's a bit slow, but MooZ always checks the forum (he runs it).

 MooZ, Charles, and I don't use the MagicKit included libraries. We have our own (and many times just written over again on the fly). I found the documentation for Mkits libs seriously lacking. Building your own lib is fairly easy and gives you more freedom and control for your layout, etc. Among some other small advantages. If you're compiling PCEAS, use the last public source for it that's include in HuC source kit. I have my own private build with a few upgrades added in (8k bank boundary crossing error for Code is gone, new directives for easier table making, better name support for Macros, - and + local labeling, etc). MooZ does too, IIRC. I was talking with MooZ and we're supposed to make the new fork/build public. Just waiting on him. Won't be official, but it'll be our own version.



 I don't own the NeoFlash, but after chatting with Chilly Willy I found out my demos wouldn't run for him because PCEAS builds them with the header by default. Yeah, -raw assembles without a header. Which I use for one of my flash cards (just a dip rom board).

 HUC stuff: Someone mentioned something about replacing/reworking the scroll() routine in HuC, in one of these huc related threads. The routine is indeed part of the Mkit lib and is basically just a pass through function. I made an optimized replacement for Xavier. It eats some more memory, but it's fast and very flexible. It behaves like the HDMA setup on the SNES, Or you could think of it similar to 'copper' on the Amiga. It works by using a main table, 8bits per entry. The each of the 8bits is a command telling the hsync routine what to do; change BG color #0, change X, change Y, turn on BG, turn off BG, turn on SPR, turn off SPR, etc. There's a scanline list in a separate table telling which scanline to generate the next function list on. You can do any and all the functions at the same time for a given scanline. And you can do all visible scanlines. It uses the existing irqmask setup that HuC uses (which is a clone of the system card setup and is actually used in place of when building CD projects). I think it worked out fairly nice and gave some powerful hsync functionality to HuC setup.

touko

  • Hero Member
  • *****
  • Posts: 953
Re: Example Platform Engine
« Reply #32 on: October 12, 2011, 05:23:11 AM »
Hmm, that's odd.  What flashcard do you use?

If I make a .PCE of Atlantean and just plop it on the card, it doesn't work. lol
I use the 64 Mb version: neo pc-e flash card, with rtype .
I'am flashing with PCE option, and using NEO Power PC-E V1.0 .
« Last Edit: October 12, 2011, 05:27:33 AM by touko »

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Example Platform Engine
« Reply #33 on: October 12, 2011, 05:31:26 AM »
Oh, yay for -raw.  I don't even remember that option being in the usage menu.  maybe it was overlooked. :) Cool.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

thrush

  • Full Member
  • ***
  • Posts: 202
Re: Example Platform Engine
« Reply #34 on: October 18, 2011, 03:40:46 AM »
Cool, thanks a lot for the info & recommendations guys.  Sorry it took me like a week to read this.

Bonknuts -- thanks much for the offer!  I have seen your posts as Tomaitheous all over the place on various forums, cool!  I believe I did use the most recent release of PCEAS when I compiled; I'll check later.

I should have more time once November rolls around, so maybe I'll be able to get started on something then & have some real questions for people.  ^_^

Gredler

  • Guest
Re: Example Platform Engine
« Reply #35 on: March 01, 2016, 12:56:27 PM »
bump, cause this is rad

nodtveidt

  • Guest
Re: Example Platform Engine
« Reply #36 on: March 01, 2016, 01:45:31 PM »
Haha, old school :lol: