User Tools

Site Tools


base:advanced_optimizing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
base:advanced_optimizing [2024-01-16 12:57] – [Combining bits / Substitute logical operations] bitbreakerbase:advanced_optimizing [2024-03-03 11:06] (current) – [ASR] bitbreaker
Line 1058: Line 1058:
  
 <code> <code>
-        and #$ff+        and #$fe
         lsr         lsr
-        clc 
 </code> </code>
 ===== ARR ===== ===== ARR =====
Line 1486: Line 1485:
 </code> </code>
  
-Depending on what you have in register A, you can express it in many differnet ways:+Depending on what you have in register A, you can express it in many different ways:
  
 <code> <code>
Line 1516: Line 1515:
 There are of course also other expressions possible, just ponder a while about the term. Also the carry flag after the negation can be influenced, depending on using sbc or adc for most cases ($00/$ff will cause an overflow). There are of course also other expressions possible, just ponder a while about the term. Also the carry flag after the negation can be influenced, depending on using sbc or adc for most cases ($00/$ff will cause an overflow).
  
-How'about forming terms with logical operations? We notice, that for e.g. (a + b) xor $ff is the same as (a xor $ff) - b:+How about forming terms with logical operations? We notice, that for e.g. (a + b) xor $ff is the same as (a xor $ff) - b:
  
 <code> <code>
base/advanced_optimizing.1705406256.txt.gz · Last modified: 2024-01-16 12:57 by bitbreaker