11 March 2016 - Forum Rules
Started by ResetCartucho, September 12, 2018, 06:18:43 PM
Quote from: Disch on September 13, 2018, 11:10:36 AMAssembly is easy. It's programming fundamentals that are hard.
Quote from: PolishedTurd on September 13, 2018, 10:46:58 AMThere is a big difference between knowing the instruction set and being able to program in assembly. I'm not sure where you are starting from; there is a lot of background knowledge to build up before you'll be able to look at a block of assembly code and understand what it's trying to do. In broad strokes:
Quote from: PolishedTurd on September 13, 2018, 10:46:58 AMIn broad strokes:Boolean algebra, the foundation of digital logic. How complex "decisions" can be made from simple comparisons between true and false. Learn how to evaluate expressions involving AND, OR, NOT, XOR. It takes practice to learn how to think this way. Binary and hexadecimal number representation, and moving between them. Signed and unsigned. What is 0xF in decimal and in binary? How many bits does it take to represent one hex digit? Have you memorized the powers of 2, from at least 2^0 to 2^8?Digital logic and arithmetic. What happens numerically when you shift a value left or right? What is a bitmask, why is it used, and how is it often implemented in assembly? What happens to a value when you XOR it with itself? How are addition and subtraction performed? What do the "flags" on the Arithmetic and Logic Unit mean?The "game loop" paradigm. Several times per second, the state of many objects is evaluated. The state of each object is represented as a number. That number is compared to other values to determine if the state should change. Does a sprite position need to be updated? Did one object collide with another? Did the player push a button? Does something else need to happen? Over and over, many times per second, creating the illusion of simultaneous action.Flow control. Comparison, branching, jumping to a subroutine.
Page created in 0.083 seconds with 19 queries.