Coder Social home page Coder Social logo

Comments (1)

ISSOtm avatar ISSOtm commented on August 20, 2024

Turns out the fix is fairly simple:

diff --git a/fortISSimO.asm b/fortISSimO.asm
index 298da85..71145e1 100644
--- a/fortISSimO.asm
+++ b/fortISSimO.asm
@@ -1101,12 +1101,14 @@ FxArpeggio:
 	ld hl, whUGEch1.period - whUGEch1.note
 	add hl, de
 	add a, [hl]
-	ldh [c], a
 	inc hl
+	ldh [c], a
 	inc c
-	ld a, 0
-	adc a, [hl]
-	; TODO: whoops, where did the ctrl mask go? But there's not enough room...
+	ld a, [hld]
+	adc a, 0
+	dec hl
+	assert whUGEch1.period - 1 == whUGEch1.ctrlMask
+	or [hl]
 	ldh [c], a
 	ret
 

...but hUGEDriver also overwrites the flag.

https://github.com/SuperDisk/hUGEDriver/blob/5e4c77d2abbfeb75e80b4d0da1ddc370053e1c88/hUGEDriver.asm#L1081

https://github.com/SuperDisk/hUGEDriver/blob/5e4c77d2abbfeb75e80b4d0da1ddc370053e1c88/hUGEDriver.asm#L424-L427

from fortissimo.

Related Issues (15)

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.