Binary coded decimal: Difference between revisions
m
→using daa and das
Line 318:
=== using daa and das ===
This time we'll supply the arguments in hex/BCD.
Note the result is limited to 16 bits plus one carry bit here.<br>
The aaa,
Same output as above, of course
<!--<lang Phix>-->
Line 350:
<span style="color: #000000;">test2</span><span style="color: #0000FF;">(</span><span style="color: #000000;">#99</span><span style="color: #0000FF;">,</span><span style="color: #008000;">'+'</span><span style="color: #0000FF;">)</span>
<!--</lang>-->
=== hll bit fiddling ===
With routines to convert between decimal and bcd, same output as above, of course.
|