4 * Copyright (C) 1998-2009 Alan R. Baldwin
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
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, see <http://www.gnu.org/licenses/>.
24 * This Assember Ported by
25 * John L. Hartman (JLH)
26 * jhartman at compuserve dot com
27 * noice at noicedebugger dot com
35 /* Classify argument as to address mode */
37 addr(struct expr
*esp
, bool ioAdr
)
54 if ((c1
= getnb()) == 'p') {
81 if(pass
== 2 && esp
->e_mode
== S_IO
&& !ioAdr
)
85 "Forced IO address space for instruction without .io\n");
92 pdkbit(struct expr
*esp
)
104 if ((c1
= getnb()) == 'c') {
105 /* AC bit of ACC flag */
114 if ((c1
= getnb()) == 'v') {
115 /* OV bit of ACC flag */
124 /* C bit of ACC flag */
130 /* Z bit of ACC flag */
136 /* ACC status flag */
150 return (esp
->e_mode
);