asm_spinlock_release.asm
bitfixer_bitfixer/dg/z88dk/libsrc/_DEVELOPMENT/threads/mutex/z80/asm_spinlock_release.asm

SECTION code_clib
SECTION code_threads_mutex

PUBLIC asm_spinlock_release

asm_spinlock_release:

   ; enter : hl = & spinlock
   ;
   ; exit  : hl = & spinlock
   ;
   ; uses  : none
   
   ld (hl),$fe                 ; atomic operation
   ret
