Questions tagged [8-bit]

In computer architecture, 8-bit integers, memory addresses, or other data units are those that are at most 8 bits (1 octet) wide. Also, 8-bit CPU and ALU architectures are those that are based on registers, address buses, or data buses of that size. 8-bit is also a term given to a generation of computers in which 8-bit processors are the norm.

An 8-bit number has 2^8 = 256 possible states, 8 bits is one which is why computers with this architecture use bytes as a measurement of storage, for example you can have 64 gigabytes or 64000000000 bytes of memory (RAM).

Related tags:

215 questions
1
vote
2 answers

What happens when you send an 8bit number to an output which is 4bit? C Language

I'm studying in high school, and we have an electronics project. We have an output from our computer which is 4 bit, output address is 37Ah and my teacher did this: outportb(0x37A,0x80); so what will appear in the output? 0h or 8h?
Tal
  • 303
  • 1
  • 6
  • 11
1
vote
4 answers

Trying to send data via Socket to a ZVT Terminal

How can I send data to a listening Terminal ?!?! (see task) Szenario is: I have a terminal that is listening on a IP:PORT e.g. 192.168.1.100:12345 I create a socket and connect like $socket = socket_create(AF_INET, SOCK_STREAM, 0); $result =…
Dwza
  • 6,494
  • 6
  • 41
  • 73
1
vote
2 answers

embedded scripting language deep rationale

My question refers to: Scripting languages and Game Dev/Programming What I'd like to ask about is the deep rationale for embedding scripting languages into games. If you check wikipedia: http://en.wikipedia.org/wiki/Freescape Then you can see that a…
user1095108
  • 14,119
  • 9
  • 58
  • 116
1
vote
3 answers

What is the fastest way to generate pseudo random number by 8-bit MCU?

Linear congruential generator is a good algorithm. But is there any faster algorithm?
user805627
  • 4,247
  • 6
  • 32
  • 43
1
vote
3 answers

Most efficient way to convert two bytes into a 16bit value?

Say first byte = 2 (dec) and second byte = 1 (dec). First byte therefore represents 257 (dec). Second byte therefore represents 1 (dec). So the (total) 16bit value is 258 (dec). So if I do: (byte1*256)+byte2 Is that the 'proper' way to do it? Or…
Tez
  • 517
  • 1
  • 7
  • 16
1
vote
2 answers

Charset to save binary data

Is there charset which I could use to save 8bit data? I mean everything which is binary, without changing it content in string?
oneat
  • 10,778
  • 16
  • 52
  • 70
1
vote
2 answers

Do integers, whose size is not a power of two, make sense?

This is an 8 bit architecture, with a word size of 16 bits. I now need to use a 48-bit integer variable. My understanding is that libm implements 8, 16, 32, 64 bit operations (addition, multiplication, signed and unsigned). So in order to make…
Vorac
  • 8,726
  • 11
  • 58
  • 101
1
vote
3 answers

How do I split a 16-bit value into two 8-bit values in VB.NET?

I have a 16-bit value like this: 0000000000000011 I want to split this in two 8-bit values like: 00000000 and 00000011 The 16-bit value is a variable, byte_val1, which is a unsigned 16-bit integer. How can I do this in VB.NET?
Arindam Das
  • 699
  • 4
  • 20
  • 39
1
vote
2 answers

Efficiency in array packing: 8bit (byte) vs 16bit elements?

i'm currently programming in c for an 8-bit microcontroller from atmel (Atmega328). In the program, i've got an 8-bit array storing thousands of 2 bit integers and it is therefore located in the program memory space. Currently, I put four 2-bit…
Hassenboy
  • 165
  • 1
  • 7
1
vote
1 answer

Measuring Intensity Using ImageJ

we have to measure the intensity of the fluorescence in certain regions of images using imagej. we came up with the below steps to measure the intensity. while it does seem correct, my question is --> are we actually measuring intensity correctly…
user1911720
  • 11
  • 2
  • 2
  • 5
1
vote
2 answers

fast 8x8bit multiplication assembly pic18

Im trying to multiply two 8 bit numbers and store them in a 16 bit location for results larger than 255. The fastest way to accomplish this is through shifting, which I have tried to implement via the rrcf function and using bcf to clear unwanted…
matt
  • 79
  • 2
  • 13
1
vote
2 answers

Portable encoding of 32 bit integers to communicate with an 8 bit device

I need to communicate with an 8 bit device on which there is no nthol function. It is also impossible to use protocol buffers library. Will following C function produce the same output string no matter on what architecture it is run (different…
Jan Wrobel
  • 6,969
  • 3
  • 37
  • 53
1
vote
1 answer

Java - Parser Library to parse a decimal to byte in x-bits

I have a problem with parsers. The problem is I get an integer such as "8" and I need to transform this to an 8-bit unsigned byte. Later on I will receive an integer "56" and need to transform it using the the same method but when I get a "-53"…
GunBlade
  • 105
  • 2
  • 12
1
vote
1 answer

IMAP search command with UTF-8 charset in C#

C# Imap search command with special characters like á,é I am trying to implement the logic mentioned in the above post in C# to achieve non-ascii based searches in gmail. After logging in successfully to imap.gmail.com I am having the following…
XDS
  • 3,786
  • 2
  • 36
  • 56
0
votes
1 answer

Reading a smart card (8 bit or 16 bit?)

I'm working on a driver for reading smart cards (PC/SC), and I've been reading the data in a forced 8-bit manner, even if the card itself might have a 16-bit chip. I have two questions, one is: how would I tell whether the card conforms to a 16-bit…
Alex Londeree
  • 181
  • 1
  • 6