Форум Эму-Россия
http://forum.emu-russia.net/

6502 apu envelope
http://forum.emu-russia.net/viewtopic.php?f=13&t=4620
Страница 1 из 1

Автор:  Korben [ 14 май 2013, 01:12 ]
Заголовок сообщения:  6502 apu envelope

nesasm3.exe
Код:
    .inesprg 1 ;1x 16kb PRG code
    .ineschr 0 ;0x 8kb CHR data
    .inesmap 0 ; mapper 0 = NROM, no bank swapping
    .inesmir 1 ;background mirroring (vertical mirroring = horizontal scrolling)


;----- first 8k bank of PRG-ROM   
    .bank 0
    .org $C000
   
irq:
nmi:
    rti

reset:
    sei
    cld
    lda #%00000001
    sta $4015 ;enable Square 1
   
    lda #%10001111 ; duty 10, env on+NO loop, period $0F
    sta $4000

    lda #$dc    ;tone freq
    sta $4002   ;low 8 bits of period
    lda #$02
    sta $4003   ;high 3 bits of period


forever:
    jmp forever


   
;----- second 8k bank of PRG-ROM   
    .bank 1
    .org $E000
;---- vectors
    .org $FFFA     ;first of the three vectors starts here
    .dw nmi        ;when an NMI happens (once per frame if enabled) the processor will jump to the label NMI:
    .dw reset      ;when the processor first turns on or is reset, it will jump to the label reset:
    .dw irq        ;external interrupt IRQ is not used in this tutorial
   


почему не проигрывает 1 цикл огибающей ? ( 15 -> 0 ), а затыкается примерно на Env Volume = 15 ?

Автор:  org [ 14 май 2013, 22:21 ]
Заголовок сообщения:  Re: 6502 apu envelope

А length counter не 0 случайно ?

Если этот счетчик на нуле, то и звука не будет.

Страница 1 из 1 Часовой пояс: UTC + 3 часа [ Летнее время ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/