bcd Questions

1

Solved

This question was inspired by a question I recently came across on Stackoverflow. It reminded me that early in the development of the x86-64 ISA I had written 32-bit x86 code for BCD addition witho...

6

I have the code below to convert a 32 bit BCD value (supplied in two uint halves) to a uint binary value. The values supplied can be up to 0x9999, to form a maximum value of 0x99999999. Is there...
Hellen asked 20/1, 2009 at 20:30

4

Solved

Description of the binary field is: Caller number, expressed with compressed BCD code, and the surplus bits are filled with “0xF” I have tried to print with struct format '16c' and I get: ('3...
Domesticate asked 26/7, 2012 at 12:8

10

Solved

I'm to stupid right now to solve this problem... I get a BCD number (every digit is an own 4Bit representation) For example, what I want: Input: 202 (hex) == 514 (dec) Output: BCD 0x415 Input: ...
Cleodal asked 6/11, 2012 at 9:2

2

Solved

I've been struggling with understanding the ASCII adjust instructions from x86 assembly language. I see all over the internet information telling me different things, but I guess it's just the sam...
Sarabia asked 7/6, 2014 at 0:55

4

Solved

Apologies for this seemingly minor question, but I can't seem to find the answer anywhere - I'm just coming up to implementing the DAA instruction in my Z80 emulator, and I noticed in the Zilog man...
Rattan asked 14/11, 2011 at 9:34

5

I have a Hex file created by CashRegister Machine. I have to read this file in. File uses formatting detailed below. It is like socket packets. Code Data : 2 Byte PLU Code Data: 7 Byte Unit Price...
Interesting asked 28/7, 2012 at 12:30

2

Solved

I am trying to write a BCD Adder in Verilog, but I am having trouble with one of the modules. Specifically, the adder that takes two BCD digits and adds them. So, the idea is if the sum of the two ...
Revelatory asked 14/11, 2010 at 19:48

2

I'm currently working on a restrictive environment where the only types allowed are : byte, byte[], short, short[]. I am almost certain that I can't import external libraries, since I'm working ...
Pericarditis asked 25/1, 2018 at 18:32

10

Solved

I know you can use this table to convert decimal to BCD: 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 Is there a equation for this conversion or you have to just...
Propellant asked 11/9, 2009 at 0:2

3

Solved

How can I convert a binary-coded decimal number into a decimal number in terms of representation ? I don't want to convert the value of it but rather the representation of it, here is what I mean. ...
Dionysus asked 25/1, 2015 at 3:50

9

Solved

I want to convert an int to a byte[2] array using BCD. The int in question will come from DateTime representing the Year and must be converted to two bytes. Is there any pre-made function that do...
Genevieve asked 15/3, 2010 at 15:32

2

Solved

I'm writing a routine to convert between BCD (4 bits per decimal digit) and Densely Packed Decimal (DPD) (10 bits per 3 decimal digits). DPD is further documented (with the suggestion for software ...
Lamartine asked 5/12, 2015 at 23:2

2

I'm having a topic here which is from "Number Systems" in the subject of "Introduction to Computer Organisation & Architecture" Then I came across this topic,"Self comp...
bcd
Groom asked 9/9, 2014 at 15:19

10

Solved

I know BCD is like more intuitive datatype if you don't know binary. But I don't know why to use this encoding, its like don't makes a lot of sense since its waste representation in 4bits (when rep...
Dardanelles asked 1/3, 2010 at 22:21

3

I want to convert the integer (whose maximum value can reach to 99999999) in to BCD and store in to array of 4 characters. Like for example: Input is : 12345 (Integer) Output should be = "00012345...
Elapse asked 27/11, 2012 at 15:29

2

I'm looking for a replacement of the stock Delphi Data.FmtBcd library because I just hit its limits like maximum decimal digits it can represent and program terminates with EBcdOverflowException. F...
Radon asked 13/3, 2012 at 18:46

5

Solved

can someone explain to me how to convert BCD to Hexadecimal? For example how can i convert 98(BCD) to Hexadecimal. Thanks.
Greasewood asked 20/12, 2010 at 22:34

2

Solved

The value used in my project is expressed with 4-bits binary coded decimals (BCD), which was originally stored in a character buffer (for example, pointed by a pointer const unsigned char *). I wan...
Copro asked 26/5, 2011 at 11:54

5

Solved

I know how to convert binary to decimal. I know at least 2 methods: table and power ;-) I want to convert binary to decimal and print this decimal. Moreover, I'm not interested in this `decimal'; ...
Dachia asked 6/6, 2009 at 18:31
1

© 2022 - 2024 — McMap. All rights reserved.