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

How do I draw to the Adafruit 1743 using an 8-bit MPU

I'm trying to figure out how you draw to the Adafruit 1743 with a 6502 micro processor with assembly (with the vasm compiler). I've searched through the data sheets (found here:…
Samm
  • 11
  • 2
1
vote
1 answer

Drawing two character sprite in Z80 assembly

Following on from First Steps in Z80 Assembly Language I'm trying to move a two high character sprite in assembler. ORG 30000 ; Origin LASTK EQU 23560 ; last key press (system variable) PRINT EQU 8252 …
Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
1
vote
1 answer

Is ffmpeg palettgen rgb565 possible?

I am using the following commandline under windows to convert a video file to individual frames for use of a project. But the project will eventually use a 16bit RGB565 palette. Is it possible to use palettegen to create a 256 colour rgb565 palette…
Spinal
  • 11
  • 1
1
vote
2 answers

How to convert a decimal larger than 255 into two of 8-bit (2 Bytes)

Ok I know how to convert decimal to 8-bit for a example the char "A" by decimal it's 65 It's very simple to convert it into binary But what if the decimal is largen than 255 Example the Arabic char "م" in decimal it is 1605 and in binary it is…
1
vote
1 answer

Do temporary operations cause an overflow in 8-bit embedded systems?

In the example below "a + b" will overflow the size of both variables. Will this temporary result be stored in a 16-bit space or the biggest needed? Is this situation standardized across compilers? Does the system architecture matter? I'm on an…
Dragos Puri
  • 107
  • 1
  • 6
1
vote
0 answers

Negative value as result assembly

I have an issue where when i run this program: LIST P=16F877A #INCLUDE ORG 0 ;PROGRAM MEMORY ADDRESS =0x0000 GOTO MAIN N1 EQU 70 ;Counter RL EQU 71 ;Lower byte of result RH EQU 72 ;Higher…
mmdqn
  • 11
  • 2
1
vote
1 answer

Add two 32-bit numbers using 8-bit registers

The goal here is two add two 32-bit numbers stored in little-endian notation. The numbers are stored in the following memory cells: first number: 0x3000-0x3003 seconds number: 0x4000-0x4003 the result should go into: 0x5000-0x5003 The following is…
HTF
  • 6,632
  • 6
  • 30
  • 49
1
vote
2 answers

Detect digital input from 2v5 src on a chip with 3v3 power?

I'm using a 12F675 PIC and I have programmed it to make 3 LEDs flash in sequence. I want it to only do this when a particular input is NOT received. The PIC is running at 3v3 and that seems to be enough to power the chip and the LEDs when I test it.…
bixixeh201
  • 21
  • 3
1
vote
2 answers

Perl Decimal to Binary 32-bit then 8-bit

I've got a number (3232251030) that needs to be translated from Decimal to Binary. Once I've gotten the binary, I need to separate 8-bits of it into digits, revealing an ip address. Converting Decimal to Binary is simple: sub dec2bin { my $str =…
LynxLee
  • 321
  • 1
  • 6
  • 17
1
vote
1 answer

Why my code on PIC18F XC8 causes few times per second interrupt extension?

I am new in PIC processors programming and I need a little help. I'm using PIC18F8680, programming in C with XC8 compiler in MPLAB X IDE v5.35. I have two interrupts, high priority on timer 0 (5 kHz) and low priority on timer 1 (200 Hz). In high…
Svobi
  • 11
  • 4
1
vote
1 answer

Replace colors in colormap (python 3.7)

I use a simple line to break an indexed image 256 color into palette using import numpy as np from PIL import Image im = Image.open('') palette = np.array(im.getpalette(),dtype=np.uint8).reshape((256,3)) ##################### Printed result [[ 1 …
programc7r
  • 63
  • 6
1
vote
1 answer

Raw sound files editors, 8bit

I was wondering if anyone knows how to open and edit a raw sound file (raw unsigned 8-bit). I am making my own game and trying to create original 8-bit music. I could not open SoX, and all other editors I have cannot play these frequencies…
Kat
  • 35
  • 6
1
vote
1 answer

Checksum using 8 bit unsigned arithmetic in Python

I'm having a heck of time trying to derive the checksum for my serial data. I received the data as bytes, removed the flags and escape characters, placed it in a list. The instruction document specifies with a graphic that the checksum is at the end…
Robert Marciniak
  • 163
  • 1
  • 2
  • 14
1
vote
2 answers

How to get the 8 bit binary representation of a character in C?

If I have a character array and I want to obtain the 8 bit binary representation of each of the characters, how do I do that? I could only obtain the integer values, but do not know how to make the char or its integer ascii value into 8 bits. Thank…
Iris Lim
  • 19
  • 2
1
vote
2 answers

converting 24bpp bmp colour image to 8bpp grayscale bmp image in c

I am trying to convert 24bpp BMP color image to 8bpp grayscale BMP image. I have done something but i am not getting 100% correct output. I have converted 24bpp to 8bpp. but in result image colour table is also being considered as pixel data. I…
prateek k
  • 137
  • 2
  • 15