Blog

by
Asmtut 4: Input
This was originally posted on Google+, which has now been shut down. It was helpfully converted to Markdown by Robert Jacobson after which I adjusted it for reposting here. I have dated it at its original posting date, but it was posted here on 2019-09-07. Let's start drawing and moving around a snake. Before we can ask the user where he wants to move the snake, we need to have a snake: Step 9: Writing into an array Our board is basically a char[] in C lingo, even though it doesn't have a type.… Continue reading
Asmtut 3: Redundancies
This was originally posted on Google+, which has now been shut down. It was helpfully converted to Markdown by Robert Jacobson after which I adjusted it for reposting here. I have dated it at its original posting date, but it was posted here on 2019-09-07. This time we will automate stuff with the assembler. Step 6: String length In our Hello world-implementation, we used a tedious and error prone mechanism to measure the length of the string: counting by brain. Let's offload that to the comput… Continue reading
Asmtut 2: Hello world!
This was originally posted on Google+, which has now been shut down. It was helpfully converted to Markdown by Robert Jacobson after which I adjusted it for reposting here. I have dated it at its original posting date, but it was posted here on 2019-09-07. Aside: For your convenience, please use a Makefile. To assemble and link, simply execute make. # Please be aware that the indentation must be a tab character (no spaces) all: hello true %: %.o ld -macosx_version_min 10.6 -o $@ -e main $&l… Continue reading
Asmtut 1: true
This was originally posted on Google+, which has now been shut down. It was helpfully converted to Markdown by Robert Jacobson after which I adjusted it for reposting here. I have dated it at its original posting date, but it was posted here on 2019-09-07. In an effort to educate the dunces Knut and Jon who apparently never programmed in assembly, I am going to post a step by step instruction on making a snake game in x86-64/amd64 assembly on a modern operating system. Here. As if this were som… Continue reading