User Tools

Site Tools


notes:comporg:spring2025:projects:dapx

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
notes:comporg:spring2025:projects:dapx [2025/03/09 15:42] – [debugmemory function] tkastne1notes:comporg:spring2025:projects:dapx [2025/03/09 15:44] (current) – [Masking] Made asm code format consistent tkastne1
Line 135: Line 135:
  
 <code> <code>
-   mov   R1,   0xF0000000  ; Creating the mask +mov   R1,   0xF0000000  ; Creating the mask 
-   and   R1,   R0          ; R0 is the original value+and   R1,   R0          ; R0 is the original value
 </code> </code>
  
Line 144: Line 144:
  
 <code> <code>
-   mov   R2,   R3          ; R3 is the loop count +mov   R2,   R3          ; R3 is the loop count 
-   imul  R2,   -4          ; Left shift bits per nibble+imul  R2,   -4          ; Left shift bits per nibble
  
-   mov   R1,   0xF0000000  ; Creating the mask +mov   R1,   0xF0000000  ; Creating the mask 
-   shl   R1,   R2+shl   R1,   R2
        
-   and   R1,   R0          ; R0 is the original value+and   R1,   R0          ; R0 is the original value
 </code> </code>
 ====Shifting==== ====Shifting====
notes/comporg/spring2025/projects/dapx.1741534976.txt.gz · Last modified: 2025/03/09 15:42 by tkastne1