Giter VIP home page Giter VIP logo

Comments (5)

jotego avatar jotego commented on June 12, 2024

Could you (@gyurco ) check if this new commit dfaa563 works ok with Wolf3d? I had to add that line to restore the music speed in Bad Dudes vs Dragon Ninja

from jtopl.

gyurco avatar gyurco commented on June 12, 2024

I did not try it yet, but doesn't this patch makes the timer run forever?

from jtopl.

gyurco avatar gyurco commented on June 12, 2024

BTW, I got an idea from a different implementation some time ago:

if (~din[7]) begin
  flagen_A   <= ~din[6];
  flagen_B   <= ~din[5];
  { load_B, load_A   } <= din[1:0];
end

E.g. bit 7 masks the update of REG_TIMER. It didn't make much difference with AdLib games, but maybe worth to try on arcades. Maybe Bad Dudes resets the IRQ frequently, and this should not stop the timers, as it does without the masking.

from jtopl.

gyurco avatar gyurco commented on June 12, 2024

I tried your patch, and it makes Adlib detection unreliable (the check code expects the timer is not triggering IRQ until its explicitly started).
E.g. after this sequence:

	alOut(4,0x60);	// Reset T1 & T2
	alOut(4,0x80);	// Reset IRQ
	status1 = readstat();

status1 must read 0 for both timer flags.

from jtopl.

gyurco avatar gyurco commented on June 12, 2024

No more issues encountered!

from jtopl.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.