Skip to content

Commit

Permalink
Inline neg32 subroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
rmsk2 committed Feb 4, 2023
1 parent 2bad11f commit 5986f24
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions arith32.a
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,13 @@ neg32
rts


!macro neg32Inline .addr {
lda .addr
eor #1
sta .addr
}


!macro normalize .targetPtr {
; copy bytes 3,4,5,6 from TEMP_MUL
; to bytes 1,2,3,4 of (.targetPtr)
Expand Down
2 changes: 1 addition & 1 deletion main.a
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ calcOneMandelbrotSequence
; XN <= XN_SQUARE
+move32BitInline XN_SQUARE, XN
; YN_SQUARE <= -YN_SQUARE
+callFuncMono neg32, YN_SQUARE
+neg32Inline YN_SQUARE
; XN <= YN_SQUARE + XN
+callFunc add32Bit, YN_SQUARE, XN
; XN <= REAL + XN
Expand Down

0 comments on commit 5986f24

Please sign in to comment.