Intro to Registers and Instuctions2
Registers.............................You would have come across the concept of variables in other languages. A variable is an item that stores a value that can vary. In DCPU-16 Assembly we have...
View ArticleBasic Conditional Instructions
What is a conditional instruction? n the last tutorial we looked at some basic arithmetic instructions, now we will be looking at conditional instructions in this guide. A conditional statement means...
View ArticleIntro to Binary
The Decimal System The decimal number system we commonly use has a base of 10. Let’s take the number 4356. The right most digit (6) is in the units column, the unit one space over (5) to the left is...
View ArticleXOR AND BOR
Bitwise Operations Bitwise operations as the name suggests means working with values on a bit scale. Since you will be manipulating individual bits you have absolute control about how you handle your...
View ArticleDetecting Hardware
Hardware and the DCPU So your ship will have laser turrets, a radar system and active camo? These will all be hardware additions to the DCPU, so it is very important to understand how the DCPU-16...
View ArticleBits, Bytes and Words
Data Collections The smallest unit of data is called a bit. Binary computers use specific sizes of data collections each of which contain a different number of bits. We'll look closely at each one...
View ArticleIntro: Registers and Instructions
What's a register? You would have come across the concept of variables in other languages. A variable is an item that stores a value that can vary. In DCPU-16 Assembly we have registers which are...
View ArticleEndianness
Endianess Endianness refers to the order in which bytes are considered in multi-byte data. Multi-byte data structures, such as 16,32 or 64 bit words consist of smaller bytes. A numeric value split into...
View ArticleSetting Screen Border and Background Colour
Setting Up the Monitor The first step is the detect and set up the LEM1802 display. Our first code is just finding the monitor and using a hardware interrupt to map the video ram. :LEM1802_Search HWN...
View ArticleHow DCPU-16 Fonts Work
You know what a font is, right? For the purpose of this tutorial accept a DCPU font as just a collection of 128 symbols or glyphs. There is the default font in the DCPU which will be used if no other...
View Article
More Pages to Explore .....