base:advanced_optimizing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
base:advanced_optimizing [2021-03-05 16:57] – [Forming terms] bitbreaker | base:advanced_optimizing [2022-01-14 12:26] – [Incrementing related pointers] bitbreaker | ||
---|---|---|---|
Line 901: | Line 901: | ||
Actually you can use LAX also with an immediate value, but it behaves a bit unstable regarding the given immediate value. However when simply doing an LAX #$00 you are fine. | Actually you can use LAX also with an immediate value, but it behaves a bit unstable regarding the given immediate value. However when simply doing an LAX #$00 you are fine. | ||
+ | |||
+ | lda $xxxx,y is not available as 8 bit version, so an lda $xx,y is not possible. With lax $xx,y there is howeever a way to imitate a lda $xx,y at the cost of destroying x. | ||
===== SAX/SHA ===== | ===== SAX/SHA ===== | ||
Line 1537: | Line 1539: | ||
< | < | ||
- | lda bmp | + | lda bmp ;could also use lax bmp, sbx #$08, stx bmp to save more cycles |
sec | sec | ||
sbc #$08 | sbc #$08 |
base/advanced_optimizing.txt · Last modified: 2024-03-03 11:06 by bitbreaker