Add inv_FAC1_mantissa

This commit is contained in:
Rikard Nordgren committed 2025-03-03 20:08:06 +01:00
1 parent b521241636
commit 0b90926c09
9 files changed
+65 -5

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@
; --- Software features
;; #CONFIG# PANIC_SCREEN YES
;; #CONFIG# DOS_WEDGE YES
;; #CONFIG# DOS_WEDGE NO
;; #CONFIG# TAPE_WEDGE YES
;; #CONFIG# TAPE_HEAD_ALIGN NO
;; #CONFIG# BCD_SAFE_INTERRUPTS YES
+1 -1
View File
@@ -97,7 +97,7 @@
; --- Software features
;; #CONFIG# PANIC_SCREEN YES
;; #CONFIG# DOS_WEDGE YES
;; #CONFIG# DOS_WEDGE NO
;; #CONFIG# TAPE_WEDGE YES
;; #CONFIG# TAPE_HEAD_ALIGN NO
;; #CONFIG# BCD_SAFE_INTERRUPTS YES
File renamed without changes.
@@ -12,9 +12,25 @@
; - https://sta.c64.org/cbm64basconv.html
;
; XXX implement, test
; 2-complement the FAC1 mantissa
; The 4 byte mantissa is treated as an integer in big endian form
inv_FAC1_mantissa:
+STUB_IMPLEMENTATION
ldx #3
@1: lda FAC1_mantissa,X
eor #$FF
sta FAC1_mantissa,X
dex
bpl @1
inc FAC1_mantissa+3
bne @2
inc FAC1_mantissa+2
bne @2
inc FAC1_mantissa+1
bne @2
inc FAC1_mantissa
@2: rts