Files
4kintro/debug_4klang_wrapper.asm
2024-06-02 21:24:14 +03:00

36 lines
627 B
NASM

; Compofiller Studio by Yzi
; Wrapper 4klang.asm, so we can get our debug/test DLL to export the constants.
%include "4klang.asm"
music_sample_rate:
dd SU_SAMPLE_RATE
music_bpm:
dd __float32__(%[SU_BPM])
music_length_samples:
dd SU_LENGTH_IN_SAMPLES
%macro EXPORT_FUNC 1
export %1
global _%1
_%1:
%1:
%endmacro
EXPORT_FUNC GetMusicSampleRate
mov eax, dword [music_sample_rate]
ret
EXPORT_FUNC GetMusicBPM
; mov eax, dword [music_bpm]
fld dword [music_bpm]
ret
EXPORT_FUNC GetMusicLengthSamples
mov eax, dword [music_length_samples]
ret