MSX FUSION-C, Talking about bugs, errors, mistakes

Page 9/9
2 | 3 | 4 | 5 | 6 | 7 | 8 |

By konamiman

Paladin (1005)

konamiman's picture

24-04-2019, 15:45

erikmaas wrote:
.globl	l__INITIALIZED
.globl	l__INITIALIZER
.globl	s__INITIALIZED
.globl	s__INITIALIZER
        .area   _GSINIT
gsinit::
	ld	bc, #l__INITIALIZED
	ld	a, b
	or	a, c
	jr	z, gsinit_next
	ld	de, #s__INITIALIZED
	ld	hl, #s__INITIALIZER
	ldir
gsinit_next:
.area   _GSFINAL
	ret

This seems indeed the way to go. The fun part is that I had found this myself while working on OPC: https://github.com/Konamiman/OPC/blob/master/Server/msx/crt0... - but forgot to backport it to the MSX-DOS crt0's. D'oh! :(

By wimpie3

Master (237)

wimpie3's picture

26-04-2019, 15:53

Seems that there is a problem with keySound(0) to turn off the keyboard click. Calling this function causes a "too many parameters" error.

By ericb59

Paladin (828)

ericb59's picture

26-04-2019, 18:05

Please let me know more information about what you are calling "parameters errors"

By wimpie3

Master (237)

wimpie3's picture

02-05-2019, 10:30

The exact error I get when using keySound(0) is:
warning 112: function 'keySound' implicit declaration
error 101: too many parameters

By ToriHino

Champion (298)

ToriHino's picture

02-05-2019, 11:02

Looks like you are either missing an include or misspelled the function, since it does not recognize the declared function .

By wimpie3

Master (237)

wimpie3's picture

02-05-2019, 11:21

Stupid me... it's KeySound and not keySound.

OK, other question: anyone know how to get pt3replayer and ayfx_player working at the same time? I can play sound effects but this has a serious impact on the quality of the music, even it the music only plays on one track. Can I "force" sound effects on one channel and music on the other?

Page 9/9
2 | 3 | 4 | 5 | 6 | 7 | 8 |
My MSX profile