Search found 540 matches

by Movax12
Fri Mar 03, 2023 2:28 pm
Forum: Other Retro Dev
Topic: Interesting Video about 6502 "broken" ROR
Replies: 4
Views: 1448

Re: Interesting Video about 6502 "broken" ROR

I have "The Best of BYTE Volume 1" and remember reading this article: https://www.tech-insider.org/microprocessors/research/acrobat/7511-a.pdf I couldn't remember what they said about ROR, but on the bottom of the second page, they clearly refer to ROR as being absent and nothing about a b...
by Movax12
Sun Nov 20, 2022 4:13 pm
Forum: NESdev
Topic: I have stupid preprocessor and include guard questions about ca65
Replies: 3
Views: 656

Re: I have stupid preprocessor and include guard questions about ca65

No. THINGY = 1 Results in the creation of a symbol/identifier named THINGY that evaluates to 1 when used in an expression. .ifdef THINGY or .defined(THINGY) will return true (which in CA65 is an integer value of 1- but this is unrelated the discussion). .define THINGY 1 Results in a define that will...
by Movax12
Sun Nov 20, 2022 8:51 am
Forum: NESdev
Topic: I have stupid preprocessor and include guard questions about ca65
Replies: 3
Views: 656

Re: I have stupid preprocessor and include guard questions about ca65

Currently, I am having to declare something in the following manner: _APPCONFIG_INC_ = 1 A symbol created with .define will always be replaced by what it was defined as except when using .undefine . So if you .define foo with nothing following, foo will always be replaced with nothing. Therefore, c...
by Movax12
Sun Nov 06, 2022 10:59 am
Forum: NESdev
Topic: Troublesome cc65 debugging
Replies: 15
Views: 1446

Re: Troublesome cc65 debugging

You might want to try NintendulatorDX. It has source level debugging. There are some nice macros for CA65 you can use with it, but I don't think it is possible to get all of the features working with C as they do in CA65. You can use the "legacy" ports the emulator supports. For example, a...
by Movax12
Sat Aug 20, 2022 9:15 am
Forum: Homebrew Projects
Topic: Timer Alarm
Replies: 7
Views: 1453

Re: Timer Alarm

I find this interesting and have tried to do an accurate clock too. Not sure I am doing it right, does this make sense? ; framerate = 60.098811862348404716732985230828 frames/sec ; = 0.01663926405550947066275456212502 seconds/frame ; = 1.663926405550947066275456212502 hundredths / frame ; fractional...
by Movax12
Sun May 22, 2022 2:01 pm
Forum: Newbie Help Center
Topic: Port 2 Controller Input (buttons always registered as "pressed")
Replies: 15
Views: 2127

Re: Port 2 Controller Input (buttons always registered as "pressed")

mechadendrite wrote: Sun May 22, 2022 1:28 pm

Code: Select all

ReadController2:
    LDA #$01
    STA $4017 ; polling input for controller 2
    LDA #$00
    STA $4017
Change $4017 to $4016.
Suggested: One controller reading routine that reads both. No need to call it again when a button press doesn't match, just read the controllers once per frame.
by Movax12
Sat Apr 30, 2022 9:12 pm
Forum: Newbie Help Center
Topic: Ca65 MMC3 Parallax NES Demo Cart
Replies: 3
Views: 644

Re: Ca65 MMC3 Parallax NES Demo Cart

I have a few questions, 1. For People experienced with Ca65 How do I pass CPU internal Accumulator, X, Y into a .macro ? Can you expand on what you mean? 2. I have been working on .macro to make the code more C like with simple Commands like M_FORLOOP ; M_IfEqual ; M_Else ; M_EndIf etc. This helps ...
by Movax12
Sat Mar 05, 2022 7:13 pm
Forum: NESdev
Topic: ld65 complains if I try to reuse zp addresses in different source files
Replies: 21
Views: 3045

Re: ld65 complains if I try to reuse zp addresses in different source files

This thread seems to be going in this direction, so I guess I will post this here. This isn't as polished as I would like: the documentation is not complete, but there is a demo that should demonstrate what the documentation is missing. Full functionality relies on thefox's NintendulatorDX . It coul...
by Movax12
Fri Mar 04, 2022 8:13 pm
Forum: NESdev
Topic: Macros for Structured/HL assembly (ca65)
Replies: 3
Views: 956

Re: Macros for Structured/HL assembly (ca65)

In most cases, the macros assemble exactly the same thing you would do by hand... Yes, I can still control exactly what assembly language code is generated. I wouldn't recommend this for beginners just learning assembly though: It's probably better to learn the assembly first to understand how to u...
by Movax12
Fri Mar 04, 2022 1:03 pm
Forum: NESdev
Topic: Macros for Structured/HL assembly (ca65)
Replies: 3
Views: 956

Macros for Structured/HL assembly (ca65)

While working on my personal projects, I decided that my macro code I wrote years ago (a few people may remember) to accomplish high-level like structures in ca65 needed some attention. It worked well, but the macro code itself was unorganized. I've rewritten it and pulled the needed files for this ...
by Movax12
Fri Dec 31, 2021 1:23 pm
Forum: NESdev
Topic: Is there an assembler that supports unit testing?
Replies: 18
Views: 3573

Re: Is there an assembler that supports unit testing?

Forking an emulator and wrapping some kind of scripting language around it, where the scripting language contains instructions you write on how to preload the NES's memory with test data, how to initialize mappers, etc, then points the emulated CPU at the code you want to test, then emulates until ...
by Movax12
Tue Dec 28, 2021 4:21 pm
Forum: NESdev
Topic: Is there an assembler that supports unit testing?
Replies: 18
Views: 3573

Re: Is there an assembler that supports unit testing?

If you can run your code on an emulator that has Lua (or other?) scripting support that can access the machine state and allows calling script routines from 6502 code at key points you could probably do what you want. It might be nice if the script could set values and call your 6502 routine as well...
by Movax12
Sun Oct 11, 2020 2:43 pm
Forum: Web Issues
Topic: Sometimes can't access nesdev.com
Replies: 9
Views: 12402

Re: Sometimes can't access nesdev.com

I can confirm that changing network.http.rcwn.enabled to false appears to have resolved all issues for me.
by Movax12
Sat Sep 26, 2020 10:40 pm
Forum: Web Issues
Topic: Sometimes can't access nesdev.com
Replies: 9
Views: 12402

Re: Sometimes can't access nesdev.com

Sounds like it is the same problem. Thanks.
by Movax12
Sat Sep 26, 2020 7:01 pm
Forum: Web Issues
Topic: Sometimes can't access nesdev.com
Replies: 9
Views: 12402

Sometimes can't access nesdev.com

Randomly, my browser times out accessing the site. Once this happens I can't access it for some time. (Not sure how long, but eventually it works again.) It seems to happen when I first access the site. (But not everytime.) I'll navigate to forums.nesdev.com and click on a topic or forum, and my bro...