Gonna Learn 6510 ML Code
Re: Gonna Learn 6510 ML Code
I found a website that will let you run 6502 code in the browser. Might be useful for running small snippets of code. https://skilldrick.github.io/easy6502/
Re: Gonna Learn 6510 ML Code
Guys I made an ML code thing.
What I was able to do was make a program that takes keyboard input and prints it on the screen. When you hit ENTER, it generates a SYNTAX ERROR message.
What I was able to do was make a program that takes keyboard input and prints it on the screen. When you hit ENTER, it generates a SYNTAX ERROR message.
Code: Select all
1400: CLC CLEAR THE CARRY FLAG, BECAUSE WHY NOT
1401: JSR $FFE4 GET INPUT FROM KEYBOARD
1404: JST $FFD2 PRINT IT ON THE SCREEN
1407: TAX TRANSFER THE CHARACTER FROM A TO THE X REGISTER
1408: CPX #$0D WAS THE LAST CHARACTER A CARRIAGE RETURN?
140A: IF NOT, GO BACK TO 1401
140C: RTS DONE
Re: Gonna Learn 6510 ML Code
I've been flipping through this online manual and gleaning things:
https://archive.org/details/Machine_Lan ... /page/n101
Gradually learning about the carry flag and math operations. I should be able to write up a small little math calculator thingy in a few days maybe.
https://archive.org/details/Machine_Lan ... /page/n101
Gradually learning about the carry flag and math operations. I should be able to write up a small little math calculator thingy in a few days maybe.
-
- Posts: 352
- Joined: Tue Apr 28, 2009 11:03 pm
Re: Gonna Learn 6510 ML Code
Outstanding! I suck at coding. XD Keep us posted.
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
Re: Gonna Learn 6510 ML Code
Er...trying to remember how to take an input and store it somewhere, then evaluate it and spit it back out...
I got 50 billion things on the go here.
I got 50 billion things on the go here.
-
- Posts: 352
- Joined: Tue Apr 28, 2009 11:03 pm
Re: Gonna Learn 6510 ML Code
Don't worry. This is all character building.
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
Re: Gonna Learn 6510 ML Code
In a way this is all very surreal. Back in the day I thought learning BASIC was the way to go, and I thought I was reasonably (for a 13 year old) proficient with it.
This ML stuff takes me back to day 1 of programming, only I'm being shoved into the lockers by ROL and ROR, JSR is stealing my lunch money and CPX and CPY are beating me up in the parking lot.
Oh and BCC and BCS are making me do their homework.
This ML stuff takes me back to day 1 of programming, only I'm being shoved into the lockers by ROL and ROR, JSR is stealing my lunch money and CPX and CPY are beating me up in the parking lot.
Oh and BCC and BCS are making me do their homework.
-
- Posts: 352
- Joined: Tue Apr 28, 2009 11:03 pm
Re: Gonna Learn 6510 ML Code
I went with AppleBasic, when I got my first computer and I thought I was a baller for making printable AD&D characters. I struggled with C for a MUD on my amiga, but you're speaking Greek to me. Nice to see I'm not the only one bullied by code.Darendor wrote: ↑Wed Mar 06, 2019 1:12 am In a way this is all very surreal. Back in the day I thought learning BASIC was the way to go, and I thought I was reasonably (for a 13 year old) proficient with it.
This ML stuff takes me back to day 1 of programming, only I'm being shoved into the lockers by ROL and ROR, JSR is stealing my lunch money and CPX and CPY are beating me up in the parking lot.
Oh and BCC and BCS are making me do their homework.
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
Re: Gonna Learn 6510 ML Code
I like to think that eventually I'll be like Dr Strange and master this stuff.
That, or I'll end up in an insane asylum spewing BASIC statements over and over again.
That, or I'll end up in an insane asylum spewing BASIC statements over and over again.
-
- Posts: 352
- Joined: Tue Apr 28, 2009 11:03 pm
Re: Gonna Learn 6510 ML Code
Remember, Dr Strange said there was one possible outcome where Thanos doesn't win. Captain Marvel is already here.
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
Re: Gonna Learn 6510 ML Code
As usual, something shiny rolled by and I went and chased it for a few weeks.
I'll get back to this.
I'll get back to this.
Re: Gonna Learn 6510 ML Code
Okay. I've become stuck.
Well, that's no surprise.
But seriously. WHAT does it mean when something is "EOR"-ed with say #$EA?
I honestly don't get what this means.
Well, that's no surprise.
But seriously. WHAT does it mean when something is "EOR"-ed with say #$EA?
I honestly don't get what this means.
Re: Gonna Learn 6510 ML Code
I figured it out, with the help of a piece of cheese.
I ate it long ago, but not before thanking it for helping me.
I am perfectly, completely sane.
I ate it long ago, but not before thanking it for helping me.
I am perfectly, completely sane.