Flagon Bird

Use this forum to submit new files for the download section of the archive. I will check each submission and upload it to the archive on a regular basis.
User avatar
robcfg
Posts: 1532
Joined: Sat Apr 04, 2009 10:16 pm
Location: Stockholm, Sweden
Contact:

Re: Flagon Bird

Post by robcfg »

Tested today the rom version on the Multicartridge, and works flawlessly!

I'm going to surprise some friends of mine this weekend, hehe :mrgreen:
User avatar
Bosco
Posts: 334
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: Flagon Bird

Post by Bosco »

robcfg wrote:Tested today the rom version on the Multicartridge, and works flawlessly!
That's great news! Hope you have fun with it. :D

BTW. Spotted a nice mention here http://www.retrovideogamer.co.uk/index.php?topic=4293.0
Alastair
Posts: 669
Joined: Fri Jul 18, 2008 11:33 pm

Re: Flagon Bird

Post by Alastair »

The flying brick with a deathwish (my best score is a lowly eight) doesn't like it when a DASM/DEMON cartridge is inserted in the computer. I've verified this on real hardware, as well as with XRoar, so I'm wondering if Flagon Bird uses any of the addresses between $600 and $900, as this is the address space used and/or reserved by DEMON.
User avatar
Bosco
Posts: 334
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: Flagon Bird

Post by Bosco »

Alastair wrote:I'm wondering if Flagon Bird uses any of the addresses between $600 and $900, as this is the address space used and/or reserved by DEMON
Yes, $600 is the base address of the screen. I can move it if you'd like?
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Flagon Bird

Post by zephyr »

For some reason (bug?) DEMON always sets bit 2 of $FF03 (IRQ on LO to HI instead of the default IRQ on HI to LO) when the computer is first switched on or cold reset. Enter POKE65283,PEEK(65283)AND253 to clear bit 2 before EXECing the game.
Alastair
Posts: 669
Joined: Fri Jul 18, 2008 11:33 pm

Re: Flagon Bird

Post by Alastair »

zephyr wrote:For some reason (bug?) DEMON always sets bit 2 of $FF03 (IRQ on LO to HI instead of the default IRQ on HI to LO) when the computer is first switched on or cold reset. Enter POKE65283,PEEK(65283)AND253 to clear bit 2 before EXECing the game.
Thanks, this works. If it is a bug did Compusense ever correct it? (The release version I have is 1.1.6, does a later version of DEMON exist?)
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Flagon Bird

Post by zephyr »

Alastair wrote:If it is a bug did Compusense ever correct it?
I don't know, but it can easily corrected by changing the value at $C042 from 3 to 1.


@Bosco: Adding the following code to the start of your game will prevent these problems by making sure that that the hardware is always correctly set up and IRQ enabled. It will also restart the game if the reset button is pressed.

Code: Select all

         LDD     #$557E    * Default EXEC address
         LDX     #RESET
         STA     <$71
         STX     <$72
         LDX     #FIRQ
         STB     $010F
         STX     $0110
         JMP     [$FFFE]
FIRQ     PSHS    A
         LDA     $FF23
         ANDA    #$FE
         STA     $FF23
         LDA     $FF22   
         PULS    A
         RTI
RESET    NOP
         ORCC    #$50
         LDS     #$02D8     * Cartridge ROM entry address
         LDA     $FF03
         ORA     #$01
         STA     $FF03
         ANDCC   #$EF
@Robcfg and Rolo: If Bosco decides to use this code, your routine should jump to the "Cartridge ROM entry address" when converting the game to run from cartridge.
Last edited by zephyr on Tue Jul 08, 2014 9:32 am, edited 9 times in total.
User avatar
Bosco
Posts: 334
Joined: Tue Mar 04, 2014 11:49 pm
Location: Nottingham, UK

Re: Flagon Bird

Post by Bosco »

Thanks zephyr, sounds like a great idea. :)

I'll add your code to v1.1.

BTW. I'm assuming this is CoCo safe?
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Flagon Bird

Post by zephyr »

Bosco wrote:BTW. I'm assuming this is CoCo safe?
Yes. Safe for all CoCo models.
zephyr
Posts: 1474
Joined: Mon Jul 21, 2008 1:18 am

Re: Flagon Bird

Post by zephyr »

You could make your game compatible with all 16K CoCo 1/2 models if you changed the ORG address from $4000 to $1E00.
Post Reply