Programming on Aaron's Stuffhttps://aaron.baugher.biz/tags/programming/
Recent content in Programming on Aaron's StuffHugo -- gohugo.ioen-usThu, 09 Aug 2018 22:34:00 -0500Assembly #03: Intro to 6502 Instruction Sethttps://aaron.baugher.biz/post/intro-6502-assembly-instruction-set/
Thu, 09 Aug 2018 22:34:00 -0500https://aaron.baugher.biz/post/intro-6502-assembly-instruction-set/This video introduces the 56 op-codes in the 6502 assembly language instruction set, and gives examples of the commonly used ones, using a Commodore 128 monitor. Here&rsquo;s the list of op-codes divided up by function.
This is the third video in my ongoing 6502 assembly language series. If you&rsquo;re not familiar with the 6502 hardware, or with binary math and bitwise operations, check out the two previous videos in the series for info on those.Intro to Binary & Hexadecimal and Bitwise Operationshttps://aaron.baugher.biz/post/intro-binary-hexadecimal/
Wed, 01 Aug 2018 07:00:00 -0500https://aaron.baugher.biz/post/intro-binary-hexadecimal/I&rsquo;ll be doing videos to demonstrate the 6502 instructions soon, and you can&rsquo;t understand several of them without a basic understanding of binary math. It&rsquo;s not hard, but it&rsquo;s something that isn&rsquo;t taught in math classes anymore, or is touched on as a concept but not really absorbed. This video demonstrates how to write binary numbers and translate them to decimal, how to add them, and how to convert to hexadecimal (base 16).Intro to 6502 Assembly Language Programminghttps://aaron.baugher.biz/post/intro-6502-assembly-language-programming/
Thu, 19 Jul 2018 20:36:00 -0500https://aaron.baugher.biz/post/intro-6502-assembly-language-programming/I plan to do some demonstrations of assembly language programming, so I thought I&rsquo;d do a short intro. This is about the 6502 family of microprocessors, which were used in many computers of the 1980s, and are still produced by the millions for embedded hardware and hobby projects. The 6502 is a pretty easy CPU to program, because it has a fairly small set of instructions, and yet it&rsquo;s powerful enough to do interesting things.C Programming: Tic-Tac-Toe Simulator - Part 4https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-4/
Sun, 15 Jul 2018 20:23:00 -0500https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-4/The fourth and final video in the series. I add the ability to ask for a number of games on the command line, do some final cleanup of the code and testing, and push it all to my gitlab repository.
I intend to do more programming videos, so if you have suggestions or questions, please send them to aaron@baugher.biz. I may try some live streaming so it would be possible to interact in more of a classroom manner, if these generate any interest in that.C Programming: Tic-Tac-Toe Simulator - Part 3https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-3/
Sun, 08 Jul 2018 21:53:00 -0500https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-3/This is the one where I spend an embarrassing amount of time figuring out how exactly to avoid losing a game of tic-tac-toe. Got it figured out, though. Now the players are smart enough to force a tie every time. In Part 4 I&rsquo;ll clean up the code somewhat, add a few more features, and maybe talk about what comes next in the series.
Part 1 Part 2 Part 4 tttbot repository C Programming: Tic-Tac-Toe Simulator - Part 2https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-2/
Sat, 07 Jul 2018 13:54:00 -0500https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-2/Here in part 2 I write most of the code, getting the program to where it can simulate one game. The AI is very dumb at this point, on purpose, so I could make sure the win and block conditions worked correctly. Part 3 will make it smart enough to produce all tie games, clean up the code, and do any debugging.
This isn&rsquo;t a tutorial, so I&rsquo;m not trying to teach C in it, though that&rsquo;s something I may tackle at another time.C Programming: Tic-Tac-Toe Simulator - Part 1https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-1/
Fri, 29 Jun 2018 08:10:00 -0500https://aaron.baugher.biz/post/c-programming-tic-tac-toe-simulator-part-1/This the first part in a series of videos on C programming, which will walk the viewer through programming a tic-tac-toe simulator (a program which has the computer play against itself, a la War Games). I will be making it up as I go along, so you&rsquo;ll get to see how the sausage is made, from designing to debugging. I hope that doesn&rsquo;t result in too many long pauses as I think about things, or too many times of backing up and starting over, but we&rsquo;ll see.Simple Comparison of Some Programming Languageshttps://aaron.baugher.biz/post/comparison-programming-languages/
Tue, 15 May 2018 21:09:00 -0500https://aaron.baugher.biz/post/comparison-programming-languages/As I say in the video, I get asked now and then what programming language a person should learn. I thought I&rsquo;d put together a simple demonstration of several, to show some of the similarities and differences, and why it&rsquo;s a good idea to be proficient in more than one.
I&rsquo;m also trying something new in using my phone as a webcam. Works okay, though it does add a short delay.Design Notes on a MULE-type Gamehttps://aaron.baugher.biz/post/design-notes-mule-type-game/
Sun, 18 Mar 2018 08:46:00 -0500https://aaron.baugher.biz/post/design-notes-mule-type-game/I&rsquo;ve been playing some Stardew Valley lately. I got it from gog.com for $15, which is the most I&rsquo;ve spent on a game in a long time. It&rsquo;s a very well-made game, and even more impressive when you find out it was done by one man. Not many people can code well enough to make a complete game work, and do good graphics, and do good music, etc. Most games are made by teams of people with different skills, and when one skill is missing, it shows.