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

How to save an 8-bit bmp with Julia

I am trying to save 8-bit bmp files for use with a hardware device*. I am using Julia. Whatever I try, I am only able to get 24-bit bmp files. Here is a minimal working example to illustrate the problem: using Images, FileIO dir =…
Yly
  • 2,150
  • 4
  • 20
  • 33
0
votes
0 answers

Porting from Santaka ZX Spectrum clone code to Z80 to compile a Santaka game - how to translate to this dialect?

This is a continuation of https://retrocomputing.stackexchange.com/questions/27077 I am trying to port my father's game for the Z80 compiler. I have managed to read up on the tutorials and other resources (like other BASIC programming examples) to…
Sir Muffington
  • 309
  • 1
  • 8
  • 14
0
votes
1 answer

Is it possible to configure the UART Data frame packet in 8051?

I need to configure the 8051 uart dataframe as (5 to 8 bits of wordlength),(1,1.5,2 parity bits), (even,odd and none parity ) through coading is it possible or 8051 supports only (8bit and 9bit data format). I had checked in the datasheet and…
0
votes
2 answers

Maxim DOW CRC algorithm. Cannot re-create example in application note

I'm building something which uses the DS18B20 temperature sensor. First I am trying to understand the example CRC in the Maxim application note 27, "Understanding and Using Cyclic Redundancy Checks with Maxim iButton Products"…
Archie
  • 15
  • 3
0
votes
0 answers

Why does the addition of 8-bit signed integers 0xA3 + 0xF9 NOT produce overflow, but the addition of signed integers 0x9F + 0xA3 does?

I presented the Hexadecimal values for these integers in the title, just to preserve space, however I am actually trying to add them in Binary. The overflow conditions (from what I could understand) for signed binary Addition are as follows: Suppose…
0
votes
1 answer

Unexpected garbage pixels in logo demo for Amstrad CPC emulator

I'm "emulating" the Nintendo Gameboy logo demo in an Amstrad CPC Emulator (WinApe) in mode video 1, encoded in assembly for the Z80. When I "paint" only the logo (until the line 25 and comment the others lines in main loop), It paints good, but when…
reymagnus
  • 327
  • 2
  • 17
0
votes
1 answer

How can x86 arithmetic in 8 bit mode and update the flags?

I want simulate 8051 using the x86 instruction. In 32 bits mode, I have to rotate left to get the carry flag. it is more steps to get the overflow flag. Do you know how to AL, BL, CL, DL, to do arithmetic operation and update the flags.
0
votes
3 answers

unary operator in avr: undefined behavior?

I had the issue that voltage = voltage*2/3; and voltage *= 2/3; gave different results. The variable is uint16_t and is running on an 8bit AVR microcontroller First statement gave the correct result, second statement always returned 0. Some…
jkbs1337
  • 53
  • 6
0
votes
0 answers

Sending 12 Bit Number in 8 Bits

This question is related to what is expanded on here: User Space to Kernel Communication Without Call Back Function and here: Correct Approach To Turn Closed Source Library Into Kernel HWMon Driver Module. Basically I have a kernel module function…
Harry Muscle
  • 2,247
  • 4
  • 38
  • 62
0
votes
1 answer

How to set jump condition for an 8-bit computer?

I have been taking a course called nand2tetris. In it, we build a 16-bit computer, and in each instruction, the first bit chooses address mode or command mode, i.e., if it's 0, then we load the address register, if it's 1, we execute an instruction.…
karthik
  • 3
  • 1
0
votes
0 answers

How to store keyboard input in assembly language

I'm trying to crate a prompt. I can't figure out how to store the typed text somewhere. I'm storing it because i want to make commands. Feel free to compile it :). This is a 8-bit operating system. I use nasm to compile my code. I have an intel cpu.…
user14579376
0
votes
2 answers

What is good practice when source files need to use the same object

I am mostly working alone on my projects and I am not always sure in what 'others' consider to be good or pad practices. Image you have these source files and headers foo.cpp foo.h bar.cpp foo.h Lets say that I need functions in both foo and bar to…
bask185
  • 377
  • 1
  • 3
  • 12
0
votes
2 answers

How to convert from float 32 to 8 bit without losing information?

I tried to find contours in my image with cv2.findContours. So as it uses CV_8UC1 images I tried to convert my array with dtype=np.uint8, before it was 32 bit. But there I am loosing information. Is there any other way? The second porblem is the…
lkrss
  • 57
  • 1
  • 9
0
votes
1 answer

Calculate addition of 8-bit numbers using 2's complement

For the addition operations below, find the result that would be given by a computer using 8-bit, 2's complement numbers: -93 + -35 45 + 114 My answer: First problem: Binary representation of 128= 10000000 -128 (2's compliment of 128) =…
0
votes
1 answer

How to multiply with add and shift algorithm in 6502 when the multiplicand is in the accumulator?

So I'm trying to multiply by using add and shift. I want to store the multiplicand in the accumulator and the multiplicand in the X-register. I genuinely don't know why my code isn't working but I suspect its because of the multiplicand being in the…