MAME

StateSave儲存的內容


程式位於src/state.c,儲存內容(CPU Register、RAM、Palette),如下範例(TRON):

module(0): cpu
  instance(0): irq enable
  instance(0): irq vector
  instance(0): irqline state
  instance(0): irqline vector
  instance(0): watchdog count
module(0): memory
  instance(0): 0000c000-0000ffff
  instance(1): 00004000-0000dfff
  instance(1): 0000e001-0000ffff
module(0): palette
  instance(0): brightness
  instance(0): colors
module(0): z80
  instance(0): AF
  instance(0): AF2
  instance(0): BC
  instance(0): BC2
  instance(0): DE
  instance(0): DE2
  instance(0): HALT
  instance(0): HL
  instance(0): HL2
  instance(0): I
  instance(0): IFF1
  instance(0): IFF2
  instance(0): IM
  instance(0): IX
  instance(0): IY
  instance(0): PC
  instance(0): R
  instance(0): R2
  instance(0): SP
  instance(0): int_state
  instance(0): irq
  instance(0): irq_max
  instance(0): irq_state
  instance(0): nmi_state
  instance(0): request_irq
  instance(0): service_irq
  instance(1): AF
  instance(1): AF2
  instance(1): BC
  instance(1): BC2
  instance(1): DE
  instance(1): DE2
  instance(1): HALT
  instance(1): HL
  instance(1): HL2
  instance(1): I
  instance(1): IFF1
  instance(1): IFF2
  instance(1): IM
  instance(1): IX
  instance(1): IY
  instance(1): PC
  instance(1): R
  instance(1): R2
  instance(1): SP
  instance(1): int_state
  instance(1): irq_max
  instance(1): irq_state
  instance(1): nmi_state
  instance(1): request_irq
  instance(1): service_irq

CPU的儲存設定位於每顆CPU的init(),RAM的部份則是位於mame-memory.c(register_zone()裡面)。


返回上一頁