mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
tweak temp float
This commit is contained in:
parent
2177ba0ed2
commit
00c6f74481
@ -12,7 +12,7 @@ floats {
|
|||||||
const float PI = 3.141592653589793
|
const float PI = 3.141592653589793
|
||||||
const float TWOPI = 6.283185307179586
|
const float TWOPI = 6.283185307179586
|
||||||
|
|
||||||
ubyte[5] tempvar_swap_float ; used for some swap() operations
|
float tempvar_swap_float ; used for some swap() operations
|
||||||
|
|
||||||
; ---- C64 basic and kernal ROM float constants and functions ----
|
; ---- C64 basic and kernal ROM float constants and functions ----
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ floats {
|
|||||||
const float PI = 3.141592653589793
|
const float PI = 3.141592653589793
|
||||||
const float TWOPI = 6.283185307179586
|
const float TWOPI = 6.283185307179586
|
||||||
|
|
||||||
ubyte[5] tempvar_swap_float ; used for some swap() operations
|
float tempvar_swap_float ; used for some swap() operations
|
||||||
|
|
||||||
|
|
||||||
; ---- ROM float functions ----
|
; ---- ROM float functions ----
|
||||||
|
@ -3,11 +3,12 @@ TODO
|
|||||||
|
|
||||||
For next compiler release (7.3)
|
For next compiler release (7.3)
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
- fix compiler crashing on assembler and imageviewer (add unit tests)
|
||||||
- add expression simplification to while and until loops as well.
|
- add expression simplification to while and until loops as well.
|
||||||
|
|
||||||
|
|
||||||
Blocked by Commander-x16 v39 release
|
Blocked by an official Commander-x16 v39 release
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
- simplify cx16.joystick_get2() once this cx16 rom issue is resolved: https://github.com/commanderx16/x16-rom/issues/203
|
- simplify cx16.joystick_get2() once this cx16 rom issue is resolved: https://github.com/commanderx16/x16-rom/issues/203
|
||||||
(I hope this will still be included into the final v39 roms release for the cx16)
|
(I hope this will still be included into the final v39 roms release for the cx16)
|
||||||
|
|
||||||
|
@ -1,13 +1,30 @@
|
|||||||
%import textio
|
%import textio
|
||||||
%import floats
|
%import floats
|
||||||
%zeropage basicsafe
|
%zeropage dontuse
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
sub start() {
|
sub start() {
|
||||||
ubyte bb
|
float[] farr = [1.111,2.222,3.333]
|
||||||
uword ww
|
float f2 = 9.999
|
||||||
uword @shared zz = not bb or not ww ; TODO WHY DOES THIS USE STACK EVAL-because of typecastings?
|
|
||||||
|
floats.print_f(f2)
|
||||||
|
txt.nl()
|
||||||
|
floats.print_f(farr[0])
|
||||||
|
txt.nl()
|
||||||
|
txt.nl()
|
||||||
|
|
||||||
|
swap(f2, farr[0])
|
||||||
|
|
||||||
|
floats.print_f(f2)
|
||||||
|
txt.nl()
|
||||||
|
floats.print_f(farr[0])
|
||||||
|
txt.nl()
|
||||||
|
txt.nl()
|
||||||
|
|
||||||
|
; ubyte bb
|
||||||
|
; uword ww
|
||||||
|
; uword @shared zz = not bb or not ww ; TODO WHY DOES THIS USE STACK EVAL-because it is a binaryexpression that isn't split
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user