Gonna Learn 6510 ML Code

Anything you like and probably not related to Bard's Tale
drifting
Posts: 153
Joined: Wed Dec 07, 2011 10:21 pm

Re: Gonna Learn 6510 ML Code

Post by drifting »

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/
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

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.

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
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

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. :shock:
Methuselas
Posts: 352
Joined: Tue Apr 28, 2009 11:03 pm

Re: Gonna Learn 6510 ML Code

Post by Methuselas »

Outstanding! I suck at coding. XD Keep us posted. :D
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.

BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

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. :roll:
Methuselas
Posts: 352
Joined: Tue Apr 28, 2009 11:03 pm

Re: Gonna Learn 6510 ML Code

Post by Methuselas »

Darendor wrote: Fri Mar 01, 2019 10:08 am 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. :roll:

Don't worry. This is all character building. :D
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.

BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

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. :shock:

Oh and BCC and BCS are making me do their homework. :?
Methuselas
Posts: 352
Joined: Tue Apr 28, 2009 11:03 pm

Re: Gonna Learn 6510 ML Code

Post by Methuselas »

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. :shock:

Oh and BCC and BCS are making me do their homework. :?
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.
"Using No Way as Way; Having No Limitation As Limitation". - Bruce Lee.

BTBuilder Stuff - https://drive.google.com/folderview?id= ... sp=sharing
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

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.
Methuselas
Posts: 352
Joined: Tue Apr 28, 2009 11:03 pm

Re: Gonna Learn 6510 ML Code

Post by Methuselas »

Darendor wrote: Thu Mar 07, 2019 3:20 am 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.

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
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

As usual, something shiny rolled by and I went and chased it for a few weeks.

I'll get back to this.
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

Okay. I've become stuck.

Well, that's no surprise. :roll:


But seriously. WHAT does it mean when something is "EOR"-ed with say #$EA?

I honestly don't get what this means.
User avatar
Darendor
Posts: 1502
Joined: Wed Jan 14, 2009 1:53 am
Location: Red Deer, Alberta, Canada

Re: Gonna Learn 6510 ML Code

Post by Darendor »

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.
Post Reply