Jump to content

Literals/Floating point: Difference between revisions

m
Line 1,529:
{{trans|6502 Assembly}}
You'll have to do it the hard way unfortunately. I used an IEEE-754 floating point calculator to figure this out.
The Z80 doesn't natively have any commands for floats, so you'll have to do it yourself.
<lang z80>byte &DB,&0F,&49,&40 ;0x40490FDB or 3.141592654 (single-precision)</lang>
 
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.