mirror of
https://github.com/mre/mos6502.git
synced 2024-12-01 11:51:51 +00:00
Rename the Status register sign to negative.
This commit is contained in:
parent
b546c62946
commit
0a1d6c47d0
@ -60,7 +60,7 @@ impl Machine {
|
||||
self.registers.accumulator = a_new;
|
||||
self.registers.status.carry = BitFlag::new(did_carry);
|
||||
self.registers.status.zero = BitFlag::new(is_zero);
|
||||
self.registers.status.sign = BitFlag::new(is_negative);
|
||||
self.registers.status.negative = BitFlag::new(is_negative);
|
||||
self.registers.status.overflow = BitFlag::new(did_overflow);
|
||||
}
|
||||
}
|
@ -36,7 +36,7 @@ pub struct Status {
|
||||
pub brk: BitFlag,
|
||||
pub unused: BitFlag,
|
||||
pub overflow: BitFlag,
|
||||
pub sign: BitFlag
|
||||
pub negative: BitFlag
|
||||
}
|
||||
|
||||
impl Status {
|
||||
@ -48,7 +48,7 @@ impl Status {
|
||||
| self.brk.to_bit() << 4
|
||||
| self.unused.to_bit() << 5
|
||||
| self.overflow.to_bit() << 6
|
||||
| self.sign.to_bit() << 7
|
||||
| self.negative.to_bit() << 7
|
||||
}
|
||||
|
||||
pub fn new() -> Status {
|
||||
@ -61,7 +61,7 @@ impl Status {
|
||||
brk: Off,
|
||||
unused: On,
|
||||
overflow: Off,
|
||||
sign: Off
|
||||
negative: Off
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user