Add int to float conversions
This commit is contained in:
1 parent
e41558ce33
commit
ee736cfcbc
16 files changed
+139
-56
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user