mirror of
https://github.com/irmen/prog8.git
synced 2025-01-11 13:29:45 +00:00
fix float casts
This commit is contained in:
parent
4cd74daf53
commit
225295a7d8
@ -96,8 +96,8 @@ stack_uw2float .proc
|
|||||||
.pend
|
.pend
|
||||||
|
|
||||||
stack_float2w .proc ; also used for float2b
|
stack_float2w .proc ; also used for float2b
|
||||||
jsr MOVFM
|
|
||||||
stx P8ZP_SCRATCH_REG
|
stx P8ZP_SCRATCH_REG
|
||||||
|
jsr pop_float_fac1
|
||||||
jsr AYINT
|
jsr AYINT
|
||||||
ldx P8ZP_SCRATCH_REG
|
ldx P8ZP_SCRATCH_REG
|
||||||
lda $64
|
lda $64
|
||||||
@ -109,8 +109,8 @@ stack_float2w .proc ; also used for float2b
|
|||||||
.pend
|
.pend
|
||||||
|
|
||||||
stack_float2uw .proc ; also used for float2ub
|
stack_float2uw .proc ; also used for float2ub
|
||||||
jsr MOVFM
|
|
||||||
stx P8ZP_SCRATCH_REG
|
stx P8ZP_SCRATCH_REG
|
||||||
|
jsr pop_float_fac1
|
||||||
jsr GETADR
|
jsr GETADR
|
||||||
ldx P8ZP_SCRATCH_REG
|
ldx P8ZP_SCRATCH_REG
|
||||||
sta P8ESTACK_HI,x
|
sta P8ESTACK_HI,x
|
||||||
|
@ -4,10 +4,6 @@
|
|||||||
|
|
||||||
; Note: this program is compatible with C64 and CX16.
|
; Note: this program is compatible with C64 and CX16.
|
||||||
|
|
||||||
; TODO why has the prg become bigger since register args?
|
|
||||||
; TODO doesn't work properly anymore
|
|
||||||
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
; vertices
|
; vertices
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
|
|
||||||
; Note: this program is compatible with C64 and CX16.
|
; Note: this program is compatible with C64 and CX16.
|
||||||
|
|
||||||
; TODO why has the prg become bigger since register args?
|
|
||||||
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
; vertices
|
; vertices
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
%import syslib
|
%import syslib
|
||||||
%import textio
|
%import textio
|
||||||
|
|
||||||
; TODO why has the prg become bigger since register args?
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
; vertices
|
; vertices
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
; Note: this program is compatible with C64 and CX16.
|
; Note: this program is compatible with C64 and CX16.
|
||||||
|
|
||||||
; TODO why has the prg become bigger since register args?
|
; TODO why has the prg become bigger since register args?
|
||||||
; TODO doesn't work properly anymore
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
|
@ -3,8 +3,6 @@
|
|||||||
%import graphics
|
%import graphics
|
||||||
%zeropage floatsafe
|
%zeropage floatsafe
|
||||||
|
|
||||||
; TODO doesn't work anymore
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
|
|
||||||
sub start() {
|
sub start() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user