Search found 33 matches

by DonnaD
Fri Mar 21, 2008 6:19 pm
Forum: Hardware
Topic: W65C832S
Replies: 4
Views: 3500

The only thing about is, that this datasheet was re-done on May 17, 2007. Which would indicate as of that date, they still had plans for a 32bit.
by DonnaD
Fri Mar 21, 2008 6:07 am
Forum: Hardware
Topic: W65C832S
Replies: 4
Views: 3500

W65C832S

You may be interested to know that while viewing the datasheet for W65C134S I noticed a reference to the W65C832S 32-bit processor. I guess that means it is a reality.

http://www.westerndesigncenter.com/wdc/ ... 5c134s.pdf
by DonnaD
Thu Mar 20, 2008 6:29 pm
Forum: Hardware
Topic: MOS 8568/8568
Replies: 12
Views: 10886

MOS 8568/8568

Does anyone know if there is a datasheet for the MOS 8563/8568 used in the 128 for 80-column mode?

I've searched on the net, and can't find it. I'm just wondering about pinouts etc.
by DonnaD
Thu Feb 28, 2008 4:18 am
Forum: Programming
Topic: Interrupt Handler
Replies: 13
Views: 8490

OK.. I get it now... I almost had it but not quite.... that makes sense now.

thanks
by DonnaD
Wed Feb 27, 2008 7:58 pm
Forum: Programming
Topic: Interrupt Handler
Replies: 13
Views: 8490

Thanks Garth,

I think I am understanding the I flag properly. Do I not need to use it with BRK, even though I am not using hardware interrrupts?

I would understand that when my software issues a BRK it will set the I flag and enter the BRK handler. Once in the handler, if I don't reset the I flag ...
by DonnaD
Mon Feb 25, 2008 4:00 am
Forum: Programming
Topic: Interrupt Handler
Replies: 13
Views: 8490

That first code works... but if I subtract one instead of two from the PC to avoid the ignored byte, it doesn't work.

Also, is this a bug? and if so is it in all 6502's... I have a W65C02S
by DonnaD
Mon Feb 25, 2008 2:39 am
Forum: Programming
Topic: Interrupt Handler
Replies: 13
Views: 8490

Here is the section that initiates the BRK

monitor BRK ;Enter ML Monitor
JSR cls ;clears screen
JSR menu ;displays menu
JMP mainlp ;jumps to main program loop

JSR cls
JSR menu
and JMP mainlp never gets executed... because it retruns me to BRK again.


Here is my IRQ handler
; BRK Handler ...
by DonnaD
Mon Feb 25, 2008 2:30 am
Forum: Programming
Topic: Interrupt Handler
Replies: 13
Views: 8490

Quote:
You are aware that BRK skips the byte after the BRK opcode, right? So this prints 1, not 2 as you might expect:
No, I wasn't aware of that. That is most likely my problem then. Would is the standard practive... to put a NOP there then?

Nope... that wasn't it....
by DonnaD
Sun Feb 24, 2008 11:16 pm
Forum: Programming
Topic: Interrupt Handler
Replies: 13
Views: 8490

Interrupt Handler

Hi,

I have my interrupt handler working and enter it using a BRK instruction, but when I exit the handler, it just returns right back to the handler again, altough I have made certain that the interrupt flag is being cleared with CLI. I clear it at the beggining of my handler.

Any suggestions?
by DonnaD
Wed Feb 20, 2008 6:30 am
Forum: Programming
Topic: Program Counter
Replies: 17
Views: 14369

Thanks Daryl,

This helped a lot. Can I still use RTI at the end of the BRK routine? Or should I?

I just figured out I can CLI and then RTI..... thanks
by DonnaD
Wed Feb 20, 2008 5:16 am
Forum: Programming
Topic: Program Counter
Replies: 17
Views: 14369

I have a simple ml monitor that is the BRK handler. So the monitor is running as the BRK handler and I would like to get the PC from where the BRK was issued.
by DonnaD
Wed Feb 20, 2008 4:06 am
Forum: Programming
Topic: Simple 8bit division routine
Replies: 21
Views: 25615

I used a table based Multiplication routine... Very fast as there is no looping involved, but I couldn't find anything equivilent for division. Is there such a thing?
by DonnaD
Wed Feb 20, 2008 3:56 am
Forum: Programming
Topic: Program Counter
Replies: 17
Views: 14369

If BRK puts the PC on the stack, can't I just PLA from both the hi byte and the lo byte off the stack and just store them to memory?

PLA ;Pull Program Counter Low from stack
STA pchi ;store to pchi
PLA ;Pull Program Couter High from stack
STA pclo ;store to pclo
PHA ;Push pclo back on stack ...
by DonnaD
Mon Feb 18, 2008 9:53 pm
Forum: Programming
Topic: Program Counter
Replies: 17
Views: 14369

Program Counter

Can anyone tell me how to read the Program Counter? Is there a memory address somewhere that contains this in the 65C02? I would like to read the current Program Counter position, and store it to a memory address.
by DonnaD
Mon Feb 18, 2008 1:35 am
Forum: Programming
Topic: Simple 8bit division routine
Replies: 21
Views: 25615

Never mind... I found that it does work!

Thanks anyway.