Setting up IRQ chain from easyflash

JMP $FCE2
Syntax Error
Member
Member
Posts: 3
Joined: Mon Nov 13, 2023 6:48 am
Contact:

Setting up IRQ chain from easyflash

Post by Syntax Error »

:?: Hi, i been mucking about on an easyflash image in a hex editor after asking sarah jane avory on itch how to use the file i/o system on the cartridge (/image for vice / kungfu / - ...) and she gladly answered she did everything herself on briley but not really anything about how to. (id like to make a game by somewhere around 2150AD) i figured out most of the basic stuff, i can use EAPI, switch the banks, use standard code from every bank etc but i seem to have a problem setting up an irqchain from there.

It works but i use for instance a .crt image generated with TRSE and the music sounds like a gabberfest as if the thing keeps triggering , inthere is ack i have checked in the form of ASL $D019. I have a few minor intros i know more or less how to setup and time the things (thats for single system i suppose : JoG demozoo ) Ive been going over .crt images in a hex editor and i learned much about the map of the piano but i must be missing something.

So the question is how do i set up a chain after booting a computer/vice with an easyflash cart inserted , the thing will always start in "ultimax" ( = one bank at $8000(2kb) and one bank at $E000 (2kb), after that you can choose ultimax, "standard 16kb" ($8000(2) $A000(2) which is 4k consecutive but in the cart image stands as 2 banks $8000/$A000) or 8kb (like briley witch chronicles) where you use only the lo-banks and get data at $8000(2kb) for bank 0-63.

I havent backtraced yet but i have working examples , for one thing Neutron by the same SJA, but thats a standard cart that copies itself to memory, then switches out the cart rom and uses irq at $FFFE, briley witch chronicles seems to use ram at $8000-... but it doesnt seem to corellate with the data in the bank set at $de00 so ("maybe") thats banked out too, that one uses the irq using $0314 and sets NMI(0318) to a routine with one operation then RTI , then this week theres the release ( trex bmx simulator easyflash ) which uses different zones, the intro seems to point an irq ("vector?") straight into the cart rom zone at $8000 on boot, then the other one "intro" menu1 uses bank 1 but seems to bank out while the acutal games use higher banks, the cartridge is standard 16kb banks, not ultimax as i can see in vice and they use the irqs at 0314 with NMI(0318) jumping directly to an RTI instruction.

I'll probably figure it out backtracing like i have all the rest but since i found this nice here site i thought i might as well ask (asking costs nothing goes the saying) in the meantime, maybe someone has experience using it and/or a working template (THAT would be la merde indeed). The thing id like to get most is a running irq-chain (playing sid tune and some zone-splits in rasters for different modes et al, its not a fastpaced - button masher to be) while keeping the cart rom active so i can switch between banks fast and use the code therein "as-is" for map and other data or other routines, tho as i understand using the eapi itself to actually write (or read or set) will set SEI. That would be preferred, if thats not possible for some reason i still need a chain that doesnt trigger like a spaztic blur i been looking a few weekends over images totalling several million bytes (lol) and havent really found the missing link here.

If anyone gets past all my signature incoherent rambling here and has a working solution id be much obliged, thx. If i need to elaborate or such and so pls say so, i know i seem to be speaking in tongues to a lot of humans i wont be insulted thanks :mrgreen:


Syntax Error
Member
Member
Posts: 3
Joined: Mon Nov 13, 2023 6:48 am
Contact:

Re: Setting up IRQ chain from easyflash

Post by Syntax Error »

lol ... 2 weeks later, i guess its either fort knox as usual or no one knows ... thanks for the help guys !!!
Syntax Error
Member
Member
Posts: 3
Joined: Mon Nov 13, 2023 6:48 am
Contact:

Re: Setting up IRQ chain from easyflash

Post by Syntax Error »

rite i dont see how to edit - its been what two weeks yes since the question ... not that i expected an answer anyway i got as far as it works but not as far as " i can keep the cart rom banked (on)" + the kernal off while using irq at 0314 io fffe - i havent found a cart that does it and it seems like a waste to have 16kb that can only be used for temp in a machine where thats 25% of total (working) memory ... the question stands and actually any pointers at all on "using cartridges 512kb or up in size" in or excluding ones you can write back to (i got that down too on eapi) would still be welcome ... i'll check back next month just in case a brave madman has anything useful ... and otherwise, merry xmas
User avatar
Zippy Zapp
Member
Member
Posts: 206
Joined: Tue Jul 21, 2015 6:52 pm
Location: USA
Contact:

Re: Setting up IRQ chain from easyflash

Post by Zippy Zapp »

Just a suggestion, but you might want to post your question elsewhere. There are mailing lists and other sites that have access to an audience that might get you some response...
Commodore - Changing the world 8 bits at a time.
Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 1 guest