1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-18 07:29:36 +00:00

fix ! operator

This commit is contained in:
mrdudz 2022-09-17 16:54:09 +02:00
parent 1f4f408572
commit 7693b86d7d

View File

@ -41,6 +41,9 @@ eaxufloat:
; FIXME
jmp _int32_to_float32
;------------------------------------------------------------------------------
; conversions: from float
.import _float32_to_int32
; float -> 16bit int
@ -53,8 +56,22 @@ feaxint:
feaxlong:
jmp _float32_to_int32
; the ! operator, returns a bool (int)
.export fbnegeax
fbnegeax:
stx tmp1
ora tmp1
ora sreg
ora sreg+1
beq @ret1 ; is = 0
; return 0
lda #0
tax
rts
@ret1:
lda #1
ldx #0
rts
.import _float32_add
.import _float32_sub