Half Way Through Jim Butterfield's Book, What Next?
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Half Way Through Jim Butterfield's Book, What Next?
BigDumbDinosaur wrote:
At least you guys had reference manuals to work with. When I started with the 6502, manuals had yet to be written. I worked off typewritten notes gotten from MOS Technology.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
Re: Half Way Through Jim Butterfield's Book, What Next?
barrym95838 wrote:
I'll bet you're one of those guys who used to walk to school in the snow back in the day. 
Bill
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Half Way Through Jim Butterfield's Book, What Next?
BigEd wrote:
I think learning by doing is the best way for most people, it's a question of how much support you get, how much confidence you have, and how much effort it then takes.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Half Way Through Jim Butterfield's Book, What Next?
barrym95838 wrote:
BigDumbDinosaur wrote:
At least you guys had reference manuals to work with. When I started with the 6502, manuals had yet to be written. I worked off typewritten notes gotten from MOS Technology.
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Half Way Through Jim Butterfield's Book, What Next?
whartung wrote:
Back in BDDs day, he only has 0's to work with, they hadn't invented the 1's yet.
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
- BigDumbDinosaur
- Posts: 9425
- Joined: 28 May 2009
- Location: Midwestern USA (JB Pritzker’s dystopia)
- Contact:
Re: Half Way Through Jim Butterfield's Book, What Next?
barrym95838 wrote:
BigDumbDinosaur wrote:
At least you guys had reference manuals to work with. When I started with the 6502, manuals had yet to be written. I worked off typewritten notes gotten from MOS Technology.
whartung wrote:
Back in BDDs day, he only has 0's to work with, they hadn't invented the 1's yet.
x86? We ain't got no x86. We don't NEED no stinking x86!
Re: Half Way Through Jim Butterfield's Book, What Next?
BigEd wrote:
I think learning by doing is the best way for most people, it's a question of how much support you get, how much confidence you have, and how much effort it then takes.
Bill
Re: Half Way Through Jim Butterfield's Book, What Next?
BigDumbDinosaur wrote:
barrym95838 wrote:
BigDumbDinosaur wrote:
At least you guys had reference manuals to work with. When I started with the 6502, manuals had yet to be written. I worked off typewritten notes gotten from MOS Technology.
whartung wrote:
Back in BDDs day, he only has 0's to work with, they hadn't invented the 1's yet.
OT...sorry...but that made me chuckle.
I used to have an uncle that joked about how old he was. The joke would be:
Me: "James, what's your SSN?"
Uncle James: "One."
LOL
Of course, I had to have a bit of fun about how old I am to my granddaughter. She's convinced I rode a horse-n-buggy to school. lol
Cat; the other white meat.
Re: Half Way Through Jim Butterfield's Book, What Next?
barrym95838 wrote:
I have recently been able to conclude that Base 1 arithmetic can present some unique challenges.
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: Half Way Through Jim Butterfield's Book, What Next?
JimBoyd wrote:
You didn't by any chance set BASE to one while using Forth?
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!
Mike B. (about me) (learning how to github)
Mike B. (about me) (learning how to github)
Re: Half Way Through Jim Butterfield's Book, What Next?
GARTHWILSON wrote:
Yep. This is definitely a contact sport. 
- BitWise
- In Memoriam
- Posts: 996
- Joined: 02 Mar 2004
- Location: Berkshire, UK
- Contact:
Re: Half Way Through Jim Butterfield's Book, What Next?
JimBoyd wrote:
GARTHWILSON wrote:
Yep. This is definitely a contact sport. 
Andrew Jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
6502 & PIC Stuff - http://www.obelisk.me.uk/
Cross-Platform 6502/65C02/65816 Macro Assembler - http://www.obelisk.me.uk/dev65/
Open Source Projects - https://github.com/andrew-jacobs
Re: Half Way Through Jim Butterfield's Book, What Next?
load81 wrote:
Dr Jefyll wrote:
Are you doing any assembly language coding of your own?
Initialize voice 3 of the SID chip:
Code: Select all
LDA #$FF
STA $D40F
LDA #$80
STA $D412
Code: Select all
LDA $D41B
Re: Half Way Through Jim Butterfield's Book, What Next?
Concerning the tip I provided, I don't know how random the value will be or how the VICE simulator stacks up to the real Commodore 64 SID chip concerning the randomness of the output.
Code: Select all
// do the following once to initialize the generator.
LDA #$FF // set SID's voice three frequency
STA $D40F // high byte to maximum
LDA #$80
STA $D412 // set the noise waveform
.
.
.
LDA $D41B // read the value of the waveform
// as often as needed.
.
.
.
-
White Flame
- Posts: 704
- Joined: 24 Jul 2012
Re: Half Way Through Jim Butterfield's Book, What Next?
Here's also a fully software 0-255 8-bit PRNG, keeping a seed around and setting the accumulator to the next random number:
The code can be smaller if a 1-255 output range is fine. There are wider PRNGs and other variants there as well.
Code: Select all
lda seed
beq doEor
asl
beq noEor ;if the input was $80, skip the EOR
bcc noEor
doEor: eor #$1d
noEor: sta seed