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
0
votes
0 answers

How to read 8 bit greyscale TIFF images in OpenCV for object detection?

i have a list of images which are in greyscale 8 bit resolution. i have a python script which successfully detects objects in colored images. Now i want to use this script to detect objects (people) in these 8 bit images. However, when i try to read…
rehan
  • 143
  • 3
  • 17
0
votes
0 answers

How to make a pow of 2 numbers in 8 bits in assembly

My problem is: I want to make a pow of 2 numbers in 8 bits and save the result in 16 bits, I can't use operations in 16 bits in the process, like "MUL BX" only 8 bits numbers and I should get results until 65535, I don't know how to do it without…
0
votes
4 answers

32 bit operations on 8 bit architecture

I just want to ask you is it possible to get 32-bit operations on 8-bit architecture and if yes - how? I thought about this for some time and the best idea I have is to typedef char[N] to get types from N byte size and then implement functions such…
b0kiii
  • 48
  • 6
0
votes
0 answers

Fibonacci Sequence in Custom Assembly

I've made a custom 8Bit computer in java similar to Ben Eater's 8Bit breadboard computer. I had Fibonacci working but then I decided to change the ram size and I had to also change the size of the program counter. Ever since that change, the program…
0
votes
1 answer

How do I get the most significant part of a number?

For example, if I have the number #1020h represented in hexadecimal, the most significant part is the 10 and the least is the 20. Is there an easy way of doing this? I'm using a 8 bit risc assembly simulator Edit: I was told I had to use the JC…
0
votes
1 answer

Picking a byte from a byte x byte multiplication in VHDL

I am writing a very very simple processor in VHDL that works with and 8-bit stream. I want to include a multiplication instruction in my ALU, but only tu multiply numbers that are inferior to 15, since a multiplication of two 8-bit numbers would…
embedded_dev
  • 195
  • 9
0
votes
1 answer

How I can convert a decimal number to exactly 8 bit binary?

I want to write a function to convert a number to 8 bit binary String. For example: with 20, the result I got is 10100, the expected result I want is 00010100. public static int printBinaryform(int number) { int remainder; if (number <= 1)…
0
votes
1 answer

Radix sort(Descend) for 8-bit integers, getting sorted indices. How?

Using Radix sort(Descend) to get sorted Indices of a long array consists of 8-bit integers(uchar). e.g. uchar data[10] = {2,8,6,25,255,23,96,102,235,0}; // actual one has million values size_t n = 10; int index[n]; std::iota(std::begin(index),…
Jai
  • 377
  • 2
  • 14
0
votes
0 answers

Convert string to 8 bit binary in PHP

I need to be able to convert a string into 8 bit binary using PHP. Is that possible? The string is going to be an image URL e.g. https://www.someurl.com/someimage.jpg I am doing this function:…
0
votes
3 answers

Large number of case statements breaks I2C?

I am using an 8 bit PIC (PIC16F18326) and one of the main purposes is to process many different I2C messages. The PIC is configured as an I2C slave and needs to respond with various data to about 100 different commands. When a complete message is…
Jack V
  • 1
  • 1
0
votes
1 answer

C++ Convert XOR Implementation To 8 Bit (Processor Doesn't Support XOR)

This function is used to calculate the XOR of a 32 bit integer int xor32int(int x, int y) { int res = 0; // Initialize result // Assuming 32-bit Integer for (int i = 31; i >= 0; i--) { // Find current bits in x and y …
Power5
  • 69
  • 1
  • 5
0
votes
1 answer

Correct display Qt Gui on Linux with 8-bits color. Dots at the dialog

Update: Now I know, that the reason is 8-bit color in the system. But I still have no decision. The first dialog created with Xlib and the second one is the Qt dialog. Both dialogs are very simple. The code for Qt Project is here Window Flags…
Elena
  • 119
  • 2
  • 8
0
votes
1 answer

JAVA Code To Identify A String With UTF-8 data

I am trying to standardize a set of data. Some of the names were UTF-8 encoded, others were not. What I need to do in JAVA is detect if the name was UTF encoded or not using some form of conditional logic so I can translate each row…
0
votes
1 answer

Java Code to correct UTF-8 Coded Field Back to 8 Bit ASCII

I have some data I'm processing with JAVA. From the looks of the data, it seems an 8 bit ASCII name was encoded using UTF-8 but stored in ASCII. Value in the datafield: "José Flores" What should have been stored: "José Flores" To validate my…
0
votes
1 answer

charset="8Bit" can be interpreted as us-ascii?

I am using javamail and trying to process emails that has Content-Type: text/html; charset="8Bit" can i assume this as us-ascii or is there a better equivalent?
Sathish Kumar
  • 313
  • 2
  • 15