Search found 7 matches
- Wed Jul 13, 2022 5:30 pm
- Forum: Newbies
- Topic: welcoming newcomers to the 6502 world
- Replies: 25
- Views: 42089
Re: welcoming newcomers to the 6502 world
Ha! Just seeing the "welcoming newcomers to the 6502 world" topic made me feel welcomed. I'm pretty new to 6502 programming, but not to C, Python, or pretty much anything higher level than assembly. Back in March, a friend of mine recommended I get into the 6502 and so I started down this road. It's ...
- Tue Jul 12, 2022 7:28 pm
- Forum: Programming
- Topic: 1Khz Square wave - how much is too much different?
- Replies: 16
- Views: 2311
Re: 1Khz Square wave - how much is too much different?
Ha. I kept hoping it was the code! That’d be the easiest to fix. Meanwhile. I’m gonna keep digging!
- Tue Jul 12, 2022 4:49 pm
- Forum: Programming
- Topic: 1Khz Square wave - how much is too much different?
- Replies: 16
- Views: 2311
Re: 1Khz Square wave - how much is too much different?
The math again:
GOLO: LDA (2)
STA (4)
Delay (491)
' Delay Loop:
LDX (2)
DX: DEX (2)
BNE (3 or 2)
JMP (3)
GOHI: LDA (2)
STA (4)
Delay (491)
So, just focusing on the delay loop:
2 for LDX
5 for each iteration (except for the last, which is 4)
This is 2 + 5N-1, or 5N+1...
Between each ...
GOLO: LDA (2)
STA (4)
Delay (491)
' Delay Loop:
LDX (2)
DX: DEX (2)
BNE (3 or 2)
JMP (3)
GOHI: LDA (2)
STA (4)
Delay (491)
So, just focusing on the delay loop:
2 for LDX
5 for each iteration (except for the last, which is 4)
This is 2 + 5N-1, or 5N+1...
Between each ...
- Tue Jul 12, 2022 4:20 pm
- Forum: Programming
- Topic: 1Khz Square wave - how much is too much different?
- Replies: 16
- Views: 2311
Re: 1Khz Square wave - how much is too much different?
What I find interesting is that the clock signal is dead on and seems to be measured accurately, whereas the hi/lo is off...


- Tue Jul 12, 2022 1:42 pm
- Forum: Programming
- Topic: 1Khz Square wave - how much is too much different?
- Replies: 16
- Views: 2311
Re: 1Khz Square wave - how much is too much different?
It looks like the regulars here do now know the PAL-1 system.
And a beautiful thing it is, too! Hi Hans. Yours looks so much cooler than mine :wink: . I'm off to checking measurement error cuz I'm pretty sure the code's ok (not stylewize, but cyclewize). I will also do a quick rewrite with a ...
- Tue Jul 12, 2022 1:33 pm
- Forum: Programming
- Topic: 1Khz Square wave - how much is too much different?
- Replies: 16
- Views: 2311
Re: 1Khz Square wave - how much is too much different?
Welcome! Those I/O addresses seem familiar to me. By any chance are you running the code on a KIM-1? :)
I haven't counted up your clock cycles, but I did reformat your code slightly, and it's apparent that the HI loop and the LO loop have virtually identical instructions. (BDD, I'm sure the ...
I haven't counted up your clock cycles, but I did reformat your code slightly, and it's apparent that the HI loop and the LO loop have virtually identical instructions. (BDD, I'm sure the ...
- Tue Jul 12, 2022 1:11 am
- Forum: Programming
- Topic: 1Khz Square wave - how much is too much different?
- Replies: 16
- Views: 2311
1Khz Square wave - how much is too much different?
All,
I'm new to 6502 programming. I bought a PAL-1 and I'm learning about 6502 programming and microprocessors. In the process, I found and read Don Lancaster's Micro Cookbooks... great books for folks like me, who never did any hardware or low level programming, btw. Anyway, one of the problems he ...
I'm new to 6502 programming. I bought a PAL-1 and I'm learning about 6502 programming and microprocessors. In the process, I found and read Don Lancaster's Micro Cookbooks... great books for folks like me, who never did any hardware or low level programming, btw. Anyway, one of the problems he ...