At university, I fell in love with assembler. A programming langauge that's very close to machine language, so I decided to make a small blog-series about this. But to get started there are a few things that we need.
You can download these here (www.it-ca.net/Downloads)
It's a winrar package with several files (Either made or modified by me) that will help us write programs without needless repetition etc..
An overview of the files:
Ok so first I'll explain why Me has a (*) to it. All these programs are modified by me, the original files are from my university. (Actually made quite a few changes, but nevertheless it's originally from my university.)
Gtine.obj is something I'll have to explain later. I'm still messing around with that file as it likes to corrupt whenever I try to edit it. What it does is actually implement some error handling to our project.
So I'm just quickly gonna go ahead and show you how a program looks like in assembly.
If you don't get all of this yet, don't worry, it's just to get you guys excited for programming this! Trust me, you'll be doing it in no-time.
When you see this you might think: oh looks like you're writing just english, is this an old Visual Basic of some kind? No, the reason this looks like English is because I made it look like english.
Begin, Enter, Out, End are all keywords included by keywords.asm that I wrote for you guys to get the hang of assembly a bit quicker. Feel free to add keywords to this file later on when you know a bit more of the language.
Now let's see how we execute this program.
First we use our translate file to compile this program. You can ignore the warnings, just don't ignore errors. Warnings are "ok" because they still let us execute the program and usually indicate something we wrote to help us (such as tabs / spaces between things).
Next we execute it.
So here we encounter our first small problem..When we execute our file, the information about what we have to enter is still in dutch.. I'm working on this but it's challanging to change this to English without everything corrupting. Ofcourse we know the program we wrote was to let us add 2 numbers, so we have to enter 2 numbers first.
This was my small introduction to assembly. Hopefully by next blog I've complited the translation process so it will be easier for you guys to make programs.
This was just an introduction and not an actual tutorial yet, the next blogpost will be about writing and executing your first programming, assuming you have read this one for more information.