Search found 42 matches
- Sat Jul 15, 2023 6:43 pm
- Forum: Programming
- Topic: accessing keyboard vector
- Replies: 10
- Views: 8370
Re: accessing keyboard vector
BTW, you are using R43, right? Yes. That was a whole other three page thread getting that working. This isn't the first time someone took my code, compiled it themselves, and got it to work. Which makes me think I'm struggling as much, or more, with my dev environment as with programming. I'm using...
- Sat Jul 15, 2023 5:32 am
- Forum: Programming
- Topic: accessing keyboard vector
- Replies: 10
- Views: 8370
Re: accessing keyboard vector
I've tried rts as well. Neither works for me. Question though. Why would the vector handlers be used in two different ways? That is irq uses a jmp back to the default handler but Keyboard vector uses an rts? Besides, wouldn't rts bypass whatever default handler was stored at 032E? (As to the other c...
- Fri Jul 14, 2023 10:28 am
- Forum: Programming
- Topic: accessing keyboard vector
- Replies: 10
- Views: 8370
accessing keyboard vector
I finally got my joystick and mouse functions working. I saw the clue on another thread and a post by Matt Heffernan that the cc65 inline assembler wasn't very robust. (I had tried to eliminate my dual asm and c code files for using only c and asm inline statements and it didn't work.) Now, I'm tryi...
- Tue Jun 20, 2023 4:16 am
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
they're all JMP opcodes Oops. I realized that had to be it 5 minutes ago. Doh it's a good idea to do "make clean" every once in a while, I've been using a cl65 instruction recently because I didn't know if make was going to use the wrong version of cc65. What does that make clean line del...
- Tue Jun 20, 2023 12:30 am
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
so there might actually be an extra "#" in the __asm__() directive, like "#%v" instead of "%v" it gave an error because there was a difference between the asm command in .c and the version it had in .s i had: //__asm__ ("lda %v",temp); __asm__ ("lda #1&q...
- Mon Jun 19, 2023 9:52 pm
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
but now this new mouse config completely eliminates joystick from working at all anymore...
(i was initiating the mouse (from basic before running my program) with MOUSE 1.)
edit:
And, now, even that completely shuts off joystick from working. No mouse for me.
(i was initiating the mouse (from basic before running my program) with MOUSE 1.)
edit:
And, now, even that completely shuts off joystick from working. No mouse for me.
- Mon Jun 19, 2023 9:46 pm
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
also, it absolutely IS making it's own .s files on me. and it occasionally makes a mistake. .proc _Config_Mouse: near .segment "CODE" jsr pusha lda (sp) sta _temp ldx #80 ldy #60 lda #_temp jsr $FF68 jmp incsp1 .endproc line " lda #_temp" causes an error. and it doesn't need the #.
- Mon Jun 19, 2023 9:10 pm
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
Does this code from before display the text correctly when you build it with the updated CC65? Yes. it does work now. My program will *sometimes* work on the first joystick call *if* I configure the mouse pointer first. but only sometimes. I'm going to give up working on that for now, because I can...
- Mon Jun 19, 2023 6:50 pm
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
Although Cygwin does have a cc65 directory, unless make accesses that directly, it isn't in the path. I have another cc65 install that is in the path. But, when I set that as backup and dropped a new snapshot in as my cc65 directory, it still does the same thing. first call to joystick does not resp...
- Mon Jun 19, 2023 4:18 am
- Forum: Programming
- Topic: Weird Joystick behaviour
- Replies: 23
- Views: 11996
Re: Weird Joystick behaviour
if you use CC65's ".interruptor" system, then CC65 will replace CINV with its own IRQ handler (which calls all interruptors), I had no idea such a feature existed. Were you using a makefile to build your program, or did you just have a script or batch file that called the compilers or cal...