Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color *(Launched in 2008)*

You are not logged in.

**a cat****Member**- Registered: 2014-07-27
- Posts: 98

i though the gameboy had a 8-bit processor

so i assumed this means it can only work with 8-bit numbers

so why can i do this?:

signed int x;// 16-bit

signed long y;//32-bit

i also dont rely understand how my 64-bit computer can work with 128-bit and 256-bit numbers

so dose anyone know what is rely means when you say a computer is 32-bit or 64-bit?

edit i have found the answer

the 8-bit processor just stores 16 and 32-bit numbers in multiple blocks of 8-bit numbers

and this is the same with a 64-bit processor

correct me if i am wrong

*Last edited by a cat (2014-10-15 08:13:09)*

a cat in need of knowledge!!

Offline

a 32 bit computer is a computer with a cpu and alu made up of registers and buses of that size. a bit is a Binary digIT. a bit can only be one or zero so an 8 bit computer can only process numbers between 0 and (2^8)-1 (because 0 counts as a value). So with an 8 bit computer the highest value it can carry (in binary) is 1111 1111 which is 255 or (2^8)-1.

Offline

**a cat****Member**- Registered: 2014-07-27
- Posts: 98

so it can store 16-bit numbers bye using 2 8-bit registers?

a cat in need of knowledge!!

Offline

Exactly. This website is a tutorial on gameboy asm, but the first two or three lessons are all about the gameboy hardware.

*Last edited by Crona (2014-10-16 11:51:32)*

Offline