im new to nasm (I have used Tasm) and my program isn't playing the music at all here is my code:
bits 16
org 100h
DATASEG
sound_pointer dw 0
sound_data:
incbin "abba.wav" ;1,556,480
CODESEG
start:
mov cx, 556480
mov ax, 0
mov [sound_pointer], ax
looper:
mov dx, 22ch
mov al, 10h
out dx, al
mov si, [sound_pointer]
mov al, [sound_data+si]
out dx, al
mov ax, 1
mov [sound_pointer], ax
loop looper
r