我是nasm的新手(我使用过Tasm),并且我的程序根本没有播放音乐 这是我的代码:
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