1
;Copyright (C) 1997-2007 ZSNES Team ( zsKnight, _Demo_, pagefault, Nach )
4
;http://sourceforge.net/projects/zsnes
5
;https://zsnes.bountysource.com
7
;This program is free software; you can redistribute it and/or
8
;modify it under the terms of the GNU General Public License
9
;version 2 as published by the Free Software Foundation.
11
;This program is distributed in the hope that it will be useful,
12
;but WITHOUT ANY WARRANTY; without even the implied warranty of
13
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
;GNU General Public License for more details.
16
;You should have received a copy of the GNU General Public License
17
;along with this program; if not, write to the Free Software
18
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
EXTSYM seta11_address,seta11_byte,setaramdata,ST011_DR
23
EXTSYM ST011_MapR_60,ST011_MapW_60,ST011_MapW_68;ST011_MapR_68
36
NEWSYM Seta11Write8_68
38
jnz .nosetenablew8 ; ignore ROM writes
39
mov [seta11_address],cx
47
NEWSYM Seta11Read16_68
55
NEWSYM Seta11Write16_68
57
jnz .nosetenablew16 ; ignore ROM writes
58
mov [seta11_address],cx
65
inc word[seta11_address]
77
mov [seta11_address],cx
85
NEWSYM Seta11Write8_60
89
mov [seta11_address],cx
97
NEWSYM Seta11Read16_60
102
mov [seta11_address],cx
107
inc word[seta11_address]
108
and word[seta11_address],3
116
NEWSYM Seta11Write16_60
120
mov [seta11_address],cx
127
inc word[seta11_address]
128
and word[seta11_address],3
136
NEWSYM seta11temp, resb 1