Quantcast
Channel: Codebook
Browsing all 10 articles
Browse latest View live

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 Article



Basic 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 Article

Intro 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 Article

XOR 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 Article

Detecting 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 Article


Bits, 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 Article

Intro: 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 Article

Endianness

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 Article


Setting 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 Article


Image may be NSFW.
Clik here to view.

How 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
Browsing all 10 articles
Browse latest View live




Latest Images