bit_open.asm
bitfixer_bitfixer/dg/z88dk/libsrc/games/spectrum/bit_open.asm
; $Id: bit_open.asm,v 1.6 2015/01/19 01:32:45 pauloscustodio Exp $
;
; ZX Spectrum 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 28/9/2001
;

    INCLUDE  "games/games.inc"

    PUBLIC     bit_open
    EXTERN     snd_tick

.bit_open
        ld a,(23624)
        rra
        rra
        rra
        and 7
        or	8
        push de
        ld	e,a
        ld  a,(snd_tick)
        and sndbit_mask
        or e
        pop de
        ld	(snd_tick),a
	  ret
