hlorenzi / customasm

💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Apache License 2.0
704 stars 55 forks source link

Support for 32bit and 64bit floats #180

Open cristian-5 opened 1 year ago

cristian-5 commented 1 year ago

Add support to convert a float literal to its binary representation, effectively adding the types f32 and f64. Note that the float literal could be expressed with exponential notation as well.

chrisgbk commented 1 year ago

This was discussed in #92 a while ago, with some goals and design considerations - namely, a desire not to lock users into IEEE-754 floating point numbers and support a mix of custom floating point and fixed point floating point numbers.