Open joecrop opened 1 year ago
.text | .rodata | .bss | .data | Total (RAM) | Total (ROM) | |
---|---|---|---|---|---|---|
Base | 821684 bytes | 478173 bytes | 226384 bytes | 1816 bytes | 228200 bytes | 1301673 bytes |
Head | 834324 bytes | 486889 bytes | 226376 bytes | 1816 bytes | 228192 bytes | 1323029 bytes |
+12640 bytes | +8716 bytes | -8 bytes | +0 bytes | -8 bytes | +21356 bytes | |
+1.5 % | +1.8 % | -0.0 % | +0.0 % | -0.0 % | +1.6 % |
.text | .rodata | .bss | .data | Total (RAM) | Total (ROM) | |
---|---|---|---|---|---|---|
Base | 821684 bytes | 478173 bytes | 226384 bytes | 1816 bytes | 228200 bytes | 1301673 bytes |
Head | 834324 bytes | 486881 bytes | 226376 bytes | 1816 bytes | 228192 bytes | 1323021 bytes |
+12640 bytes | +8708 bytes | -8 bytes | +0 bytes | -8 bytes | +21348 bytes | |
+1.5 % | +1.8 % | -0.0 % | +0.0 % | -0.0 % | +1.6 % |
Binary Logic Toolbox
Numworks is about to release some basic binary functions in Epsilon. I tried them out, and they are honestly pretty useless, with inputs of just 'True' and 'False' and just AND/OR/NOT functions. Here's my take on a toolbox with much more powerful logic functions to be used on both unsigned and signed integers. I have also extended the '...' (Additional Results) display to show the 2's complement binary/hex of negative numbers.
Additional Results
Negative integers can now be displayed in binary/hex. Simply navigate to the ellipsis ('...') on the right of a negative integer result to see a 2's complement representation of the number:
Functions Implemented
Basic Logic Operations
AND
OR
XOR - Exclusive OR
NOT
Bit Shifts
Shift Logical Left
Shift Logical Right
Arithmetic Shift Right
Rotate Left
Rotate Right
Setting And Clearing Bits
Get Bit
Set Bit
Clear Bit
Flip Bit
Clear 'a' With 'b'
Logic Operations (With Explicit Number of Bits)
Some logic operations (like NOT) end up generating large 32-bit numbers as the default precision is 32 bits. This adds frustration when 32 bits of precision is undesired. So some of the functions have overridden methods that have an extra argument that allows the user to control the number of output bits.
2'S Compliment Conversions/Helpers
2's Compliment Equivalent
Ceiling Log2
Other Information