Hi dclxvi,
[1] Could you be more specific? This doesn't sound familiar, but I'll give it a shot if you tell me what each step is.
The code segment goes something like this:
Result = Accumulator + 1's Complement of Memory Byte + (Carry Flag * 16)
If the Result is greater than 127 or less than ...
Search found 17 matches
- Fri Jun 04, 2004 11:26 pm
- Forum: Programming
- Topic: SBC Emulation
- Replies: 4
- Views: 4514
- Fri Jun 04, 2004 2:10 pm
- Forum: Programming
- Topic: SBC Emulation
- Replies: 4
- Views: 4514
SBC Emulation
Hi,
I've noticed two things with regard to SBC in a few 6502 emulators on the Internet that I can't explain:
[1] When setting or clearing the overflow flag during SBC, some emulators shift the carry bit to the bit-4 position.
[2] When performing BCD calculations during SBC, 66 (hex) is ...
I've noticed two things with regard to SBC in a few 6502 emulators on the Internet that I can't explain:
[1] When setting or clearing the overflow flag during SBC, some emulators shift the carry bit to the bit-4 position.
[2] When performing BCD calculations during SBC, 66 (hex) is ...
- Thu Jun 03, 2004 5:02 pm
- Forum: Programming
- Topic: CMP Instruction
- Replies: 3
- Views: 5984
CMP Instruction
Hi,
I've been reading up on the CMP instruction (CMP and SBC are the only two that are giving me any grief) and I found some really good information on this web site, and I was doing well until a question poped into my head.
It says on tutorials/compare_beyond.html that "both [CMP and SBC] affect ...
I've been reading up on the CMP instruction (CMP and SBC are the only two that are giving me any grief) and I found some really good information on this web site, and I was doing well until a question poped into my head.
It says on tutorials/compare_beyond.html that "both [CMP and SBC] affect ...
- Thu Jun 03, 2004 4:47 pm
- Forum: Programming
- Topic: SBC
- Replies: 11
- Views: 5655
- Wed Jun 02, 2004 4:54 pm
- Forum: Programming
- Topic: SBC
- Replies: 11
- Views: 5655
SBC
Hi,
Can anyone tell me what would happen if a call was made to SBC without a call to SEC first?
Thanks,
Andrew

Can anyone tell me what would happen if a call was made to SBC without a call to SEC first?
Thanks,
Andrew
- Tue Jun 01, 2004 2:23 pm
- Forum: Hardware
- Topic: Page Boundaries
- Replies: 1
- Views: 4791
Page Boundaries
Good Day,
I have a question... :?
Assume that an Op Code is being executed under the Absolute X addressing mode. The Op Code itself is on a memory page.
According to the docs I have, the Op Code is followed by two bytes that form a 16-bit address and are added to the X register to form an ...
I have a question... :?
Assume that an Op Code is being executed under the Absolute X addressing mode. The Op Code itself is on a memory page.
According to the docs I have, the Op Code is followed by two bytes that form a 16-bit address and are added to the X register to form an ...
- Fri May 28, 2004 8:39 pm
- Forum: Hardware
- Topic: Stack Pointer and Register Status After RESET
- Replies: 7
- Views: 11796
- Fri May 28, 2004 7:09 pm
- Forum: Hardware
- Topic: Stack Pointer and Register Status After RESET
- Replies: 7
- Views: 11796
Stack Pointer and Register Status After RESET
Hi,
After a RESET is performed what is the value of the following registers and the stack pointer?
Accumulator
IX
IY
Processor Status Flags
Stack Pointer
The reason I'm asking is that I have conflicting sources of information and I was hoping there would be an expert on here who could help me out ...
After a RESET is performed what is the value of the following registers and the stack pointer?
Accumulator
IX
IY
Processor Status Flags
Stack Pointer
The reason I'm asking is that I have conflicting sources of information and I was hoping there would be an expert on here who could help me out ...
- Thu May 27, 2004 11:01 am
- Forum: Hardware
- Topic: ADC Instruction and BCD
- Replies: 2
- Views: 3214
- Wed May 26, 2004 8:54 pm
- Forum: Hardware
- Topic: ADC Instruction and BCD
- Replies: 2
- Views: 3214
ADC Instruction and BCD
Hi,
I read that in when in decimal mode the Zero Flag is invalid. What does this mean? In other words, does it mean that the Zero Flag is not updated?
Thanks,
Andrew
I read that in when in decimal mode the Zero Flag is invalid. What does this mean? In other words, does it mean that the Zero Flag is not updated?
Thanks,
Andrew
- Sat May 22, 2004 8:24 pm
- Forum: Hardware
- Topic: Addressing Modes and Clock Cycles
- Replies: 5
- Views: 4211
- Sat May 22, 2004 6:34 pm
- Forum: Hardware
- Topic: Addressing Modes and Clock Cycles
- Replies: 5
- Views: 4211
Addressing Modes and Clock Cycles
Sorry, I meant Zero Page Indirect (zp,X).
But your response never answered the question either.
According to the documentation the addressing mode takes six cycles to obtain the absolute address (and data) that AND will work with.
Doesn't this mean that it will take an additional six cycles to ...
But your response never answered the question either.
According to the documentation the addressing mode takes six cycles to obtain the absolute address (and data) that AND will work with.
Doesn't this mean that it will take an additional six cycles to ...
- Sat May 22, 2004 4:54 pm
- Forum: Hardware
- Topic: Addressing Modes and Clock Cycles
- Replies: 5
- Views: 4211
Addressing Modes and Clock Cycles
Hi,
I'm looking at the Addressing Modes in Western Design Centers w65c02s manual and noticing that the addressing modes have clock cycles beside each of the steps taken during the address mode.
For example,
Under Zero Page Indexed X:
Clock Cycle. Contents of Address Bus, Contents of Data Bus
1 ...
I'm looking at the Addressing Modes in Western Design Centers w65c02s manual and noticing that the addressing modes have clock cycles beside each of the steps taken during the address mode.
For example,
Under Zero Page Indexed X:
Clock Cycle. Contents of Address Bus, Contents of Data Bus
1 ...
- Fri May 21, 2004 8:46 pm
- Forum: Hardware
- Topic: 6502 Data Bus: Signed or Unsigned? That is the question...
- Replies: 1
- Views: 2172
6502 Data Bus: Signed or Unsigned? That is the question...
This may sound like a really stupid question to diehard hardware buffs: is the Data Bus in the 6502 signed? or unsigned?
Initially, I thought it was unsigned (please... don't ask why), but now I'm pretty sure it's signed because of something I noticed with the Relative addressing mode and how can ...
Initially, I thought it was unsigned (please... don't ask why), but now I'm pretty sure it's signed because of something I noticed with the Relative addressing mode and how can ...
- Fri May 21, 2004 8:16 pm
- Forum: Hardware
- Topic: Indirect Addressing (JMP)
- Replies: 5
- Views: 3712
Indirect Addressing (JMP)
I'm asking because I'm working on an 6502 emulator and you're right that although I don't need to know what the chip's doing with the byte that's on the Data Bus (I can store it in a variable), I am interested in understanding what the chip itself does with the previous byte on the Data Bus - I mean ...