Add int to float conversions

This commit is contained in:
Rikard Nordgren committed 2025-01-28 21:07:33 +01:00
1 parent e41558ce33
commit ee736cfcbc
16 files changed
+139 -56

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
;; #LAYOUT# STD * #TAKE
;; #LAYOUT# * BASIC_0 #TAKE
;; #LAYOUT# * * #IGNORE
;
; Math package - helper function to sign extend accumulator into Y
sign_extend_A_to_Y:
cmp #$80 ; Copy sign into carry
ldy #$00 ; Y = $00
bcc @1 ; Branch if not negative
dey ; Y = $FF
@1: rts