Page 2 of 2

Re: Gonna Learn 6510 ML Code

Posted: Fri Feb 22, 2019 10:58 pm
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/

Re: Gonna Learn 6510 ML Code

Posted: Sat Feb 23, 2019 9:17 am
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

Re: Gonna Learn 6510 ML Code

Posted: Mon Feb 25, 2019 9:03 am
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:

Re: Gonna Learn 6510 ML Code

Posted: Tue Feb 26, 2019 3:18 am
by Methuselas
Outstanding! I suck at coding. XD Keep us posted. :D

Re: Gonna Learn 6510 ML Code

Posted: Fri Mar 01, 2019 10:08 am
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:

Re: Gonna Learn 6510 ML Code

Posted: Tue Mar 05, 2019 10:04 pm
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

Re: Gonna Learn 6510 ML Code

Posted: Wed Mar 06, 2019 1:12 am
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. :?

Re: Gonna Learn 6510 ML Code

Posted: Wed Mar 06, 2019 7:12 pm
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.

Re: Gonna Learn 6510 ML Code

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

Re: Gonna Learn 6510 ML Code

Posted: Mon Mar 11, 2019 1:54 am
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.

Re: Gonna Learn 6510 ML Code

Posted: Thu Mar 28, 2019 1:29 am
by Darendor
As usual, something shiny rolled by and I went and chased it for a few weeks.

I'll get back to this.

Re: Gonna Learn 6510 ML Code

Posted: Fri Apr 05, 2019 5:48 pm
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.

Re: Gonna Learn 6510 ML Code

Posted: Thu Apr 18, 2019 3:42 am
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.