Search found 114 matches

by jeffythedragonslayer
Mon Jan 02, 2023 12:03 am
Forum: Newbies
Topic: Why does ADC add one if carry flag set?
Replies: 23
Views: 9889

Re: Why does ADC add one if carry flag set?

BTW, the Super FX chip has ADD without carry.
by jeffythedragonslayer
Thu Dec 29, 2022 7:49 am
Forum: Newbies
Topic: hazards?
Replies: 3
Views: 2182

Re: hazards?

Oh, ok. I've since discovered that the Super FX chip on the other hand does have delay slots.
by jeffythedragonslayer
Tue Sep 06, 2022 10:17 pm
Forum: Hardware
Topic: Why is pulling from the stack slower than pushing?
Replies: 15
Views: 1574

Re: Why is pulling from the stack slower than pushing?

Yes that is how one of my stack unwinding macros works.
by jeffythedragonslayer
Tue Sep 06, 2022 8:30 pm
Forum: Hardware
Topic: Why is pulling from the stack slower than pushing?
Replies: 15
Views: 1574

Re: Why is pulling from the stack slower than pushing?

I don't arbitrarily change the stack pointer. I use the stack for automatic variables like in C, and I can tell at edit-time how many bytes I have allocated, so stack unwinding becomes simply incrementing the stack pointer up that many bytes.
by jeffythedragonslayer
Tue Sep 06, 2022 6:42 am
Forum: Hardware
Topic: Why is pulling from the stack slower than pushing?
Replies: 15
Views: 1574

Re: Why is pulling from the stack slower than pushing?

Not really - I just wanted to speed up restoring the stack pointer.
by jeffythedragonslayer
Sun Aug 28, 2022 10:41 pm
Forum: Hardware
Topic: Why doesn't overflowing A with INC set the overflow flag?
Replies: 8
Views: 1292

Why doesn't overflowing A with INC set the overflow flag?

The INX, DEX, INY, and DEY instructions not affecting the overflow flag makes sense to me - the index registers are not designed for doing arithmetic.

But what about INC and DEC? Why don't they affect the overflow flag? Is this an oversight? These are what I refer to as strict New Zealand ...
by jeffythedragonslayer
Sat Aug 27, 2022 6:19 pm
Forum: Emulation and Simulation
Topic: VSCode debug adapter for my 65816 simulator
Replies: 23
Views: 20067

Re: VSCode debug adapter for my 65816 simulator

I use the Mesen-SX disassembler and debugger. It still has problems with source debugging. I would use this tool if it could connect to super nintendo emulators.
by jeffythedragonslayer
Sat Aug 27, 2022 6:08 pm
Forum: Hardware
Topic: 6502 Forum 20th Anniversary Commemorative Tuit
Replies: 4
Views: 499

Re: 6502 Forum 20th Anniversary Commemorative Tuit

Congratulations! Thanks Sheep64, and here's to another 20 years.
by jeffythedragonslayer
Sat Aug 27, 2022 5:40 am
Forum: Hardware
Topic: Register renaming in the 65816?
Replies: 5
Views: 897

Re: Register renaming in the 65816?

I looked at viewtopic.php?p=15729

Would this be in transfer switches or register transfer logic?
by jeffythedragonslayer
Fri Aug 26, 2022 8:04 pm
Forum: Hardware
Topic: saving power consumption
Replies: 4
Views: 994

Re: saving power consumption

What I'm probably going to end up doing eventually is interleaving useful work for other calculations into where those NOPs used to be. WAI feels like overkill when I only need to wait a small number of cycles for a multiplication operation to complete. Once we have a visual65816 perhaps it will be ...
by jeffythedragonslayer
Fri Aug 26, 2022 7:48 pm
Forum: Hardware
Topic: Register renaming in the 65816?
Replies: 5
Views: 897

Register renaming in the 65816?

Does the 65816 use register renaming? Some instructions sound like they would be somewhat easy to implement with register renaming:
  • XBA
  • XCE
  • TXY
  • TYX
Because both registers (or bits, in the case of XCE) being swapped are the same size.
by jeffythedragonslayer
Fri Aug 26, 2022 7:56 am
Forum: Programming
Topic: CA65: how to get a simple one file binary for a EEPROM/Flash
Replies: 23
Views: 3186

Re: CA65: how to get a simple one file binary for a EEPROM/F

Not sure; since you know the first jmp is in the correct spot, can you try putting each jmp in its own segment and specify the addresses you were using with .org in the memmap configuration? JUMPTABLE1, JUMPTABLE2, etc.
by jeffythedragonslayer
Fri Aug 26, 2022 7:43 am
Forum: Programming
Topic: CA65: how to get a simple one file binary for a EEPROM/Flash
Replies: 23
Views: 3186

Re: CA65: how to get a simple one file binary for a EEPROM/F

What does the line containing "JUMPTABLE" in your mem map config file look like?
by jeffythedragonslayer
Fri Aug 26, 2022 7:36 am
Forum: Programming
Topic: CA65: how to get a simple one file binary for a EEPROM/Flash
Replies: 23
Views: 3186

Re: CA65: how to get a simple one file binary for a EEPROM/F

How does the EEPROM base address being at $e000 make you want to look at $1F00? edit: ok, I see you added an addition.
by jeffythedragonslayer
Fri Aug 26, 2022 7:21 am
Forum: Programming
Topic: CA65: how to get a simple one file binary for a EEPROM/Flash
Replies: 23
Views: 3186

Re: CA65: how to get a simple one file binary for a EEPROM/F

I don't know why you navigated to $1F00 in the screenshot. That's quite the distance from $FF00 where the first JMP opcode should be.