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
3 answers

Converting massive binary input string into character string C

I'm not familiar with C at all so this might be a simple problem to solve. I'm trying to take an input char* array of binary character sequences, ex. "0100100001101001", and output its relative string ("Hi"). The problem I'm having is coming up…
T. Pruden
  • 13
  • 4
0
votes
1 answer

8085 ASM Program Restorative Division w/ Left Shifting

I'm doing some Homework getting ready for Final and i'm trying to figure out what i know on paper to work for Restorative Division with Left Shifting. I've been playing with this for a couple nights straight and can't seem to figure out what i'm…
Mercyful
  • 107
  • 1
  • 7
0
votes
0 answers

issues with 8bit mime type emails in php

Ok, I'm trying, in php, using the imap commands to read emails from a mailbox and then do something with them (doesn't matter what). I'm getting the sending host, the subject and the sender and then the body of the email. If the email is in mime…
Will Evans
  • 27
  • 8
0
votes
2 answers

In Verilog, counting and outputting the number of 1's in an 8bit input?

What I am trying to do in my mind is take 8 1-bit inputs and count the 1's. Then represent those 1's. 01010111 should output 0101 (There are five 1's from input) module 8to4 (in,out,hold,clk,reset); input [7:0] in; //1 bit inputs reg [7:0] hold;…
Link Page
  • 11
  • 1
  • 3
0
votes
1 answer

Size-of struct with uneven 8bit members is not uneven

Good evening! 'Got the following problem: I have an input stream of multi- and single-byte datatypes and just want to lay it over a struct. Unfortunately, if I put an uneven amount of 8bit members in a struct together with 16bit members, the…
TeStUn.De
  • 3
  • 4
0
votes
2 answers

win32api: get bitmap palette

I'm basically doing this but for 8-bit. I can get the bitmap bits correctly using "P" as the mode bit. However, I have all these bitmap bits, but no palette - PIL just uses a default gray-scale palette. How do I get the correct palette from the…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
0
votes
0 answers

Return the number of bits which are set to 1 inside a variable representation

Let's suppose I have an unsigned integer number represented in an 8bit variable. I want to write a function that returns the number of bits which are set to 1 inside the variable representation. For example the function should return 1 if the number…
Jack
  • 11
  • 5
0
votes
2 answers

Copying serialized struct from an 8-bit system to a 32-bit system

I have a board with a 32-bit ARM CPU as the main processor and a 8-bit AVR microcontroller as a slave device connected to it. I am copying a struct (the slave converts it into a byte stream and the master receives and stores it in the memory…
Dojo
  • 5,374
  • 4
  • 49
  • 79
0
votes
0 answers

Combining two 8 bit registers to form a 16 bit variable

I have been tasked with implementing an addition algorithm that can deal with 16 bit numbers. I am using the atmega328p which is an 8 bit microcontroller. The brief says: " use "global variables" to store the inputs and outputs of the addition…
Alura
  • 1
  • 4
0
votes
1 answer

VHDL: Adding operations to 8-bit ALU

I'm very new to VHDL and am required to modify this ALU with an additional eight operations, which aren't relevant themselves but from the testing in GTKwave I see that the clk(clock) and r(result) discontinue simulating after the first eight…
TabulaRasa
  • 61
  • 1
  • 10
0
votes
1 answer

build a 8bit ALU using verilog

I'm trying to build an 8bit datapath in an ALU that can add, sub, OR, AND two operands. I want to use a case statement for each of the operations in the code but I keep getting error…
0
votes
0 answers

Nasm multiplication for 8bit

I am trying to write a NASM program to multiply 2 8-bit numbers but i am not getting answers beyond 15. I am a beginner and i really dont its real working... Please help... section .data msg1:db "Enter the numbers:" len1:equ $-msg1 msg2:db "Product…
VPR
  • 165
  • 2
  • 9
0
votes
1 answer

Gammu and PostgreSQL send 8bit sms

I'm working with Gammu and PostgreSQL to send sms from my computer. I have success sending a normal text sms. But i have some problem now when trying to send 8bit (Binary) message to my devices. Here's my simple query to inject message to gammu…
Anton
  • 75
  • 7
0
votes
2 answers

VHDL 8-bit multiplier, 3-bit input and 4-bit input, how to compensate for number of bits in output?

I have been working on a vhdl program that accepts 2 inputs, a 3-bit input and a 4-bit input. The 3-bit input represents "2 to the power of n", ie an input of 010(which is 2) would equal 2^2=4. An input of 110(which is 6) would yield 2^6 which is…
Alex
  • 3
  • 1
  • 2
0
votes
1 answer

8bpp BMP - refering pixels to the color table; want to read only one row of pixels; C++

I have a problem with reading 8bit grayscale bmp. I am able to get info from header and to read the palette, but I can't refer pixel values to the palette entries. Here I have found how to read the pixel data, but not actually how to use it in case…
beginner
  • 35
  • 6