This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:comporg:spring2025:virconref [2025/02/27 16:29] – [OR] wedge | notes:comporg:spring2025:virconref [2025/03/02 03:43] (current) – [GPU] tkastne1 | ||
---|---|---|---|
Line 167: | Line 167: | ||
^ Type ^ Port ^ Name ^ Description | ^ Type ^ Port ^ Name ^ Description | ||
| OUT | 0x200 | GPU_Command | | OUT | 0x200 | GPU_Command | ||
- | | | + | | |
+ | | IN | 0x202 | GPU_ClearColor | ||
| OUT | 0x202 | GPU_ClearColor | | OUT | 0x202 | GPU_ClearColor | ||
- | | | + | | |
- | | | + | | |
+ | | IN | 0x204 | GPU_ActiveBlending | ||
+ | | OUT | ||
| IN | 0x204 | GPU_SelectedTexture | | IN | 0x204 | GPU_SelectedTexture | ||
| OUT | 0x204 | GPU_SelectedTexture | | OUT | 0x204 | GPU_SelectedTexture | ||
| IN | 0x205 | GPU_SelectedRegion | | IN | 0x205 | GPU_SelectedRegion | ||
| OUT | 0x205 | GPU_SelectedRegion | | OUT | 0x205 | GPU_SelectedRegion | ||
+ | | IN | 0x206 | GPU_DrawingPointX | ||
| OUT | 0x206 | GPU_DrawingPointX | | OUT | 0x206 | GPU_DrawingPointX | ||
+ | | IN | 0x207 | GPU_DrawingPointY | ||
| OUT | 0x207 | GPU_DrawingPointY | | OUT | 0x207 | GPU_DrawingPointY | ||
- | | | + | | |
- | | | + | | OUT |
- | | | + | | |
+ | | OUT | ||
+ | | | ||
+ | | OUT | 0x20A | GPU_DrawingAngle | ||
+ | | IN | 0x20B | GPU_RegionMinX | ||
| OUT | 0x20B | GPU_RegionMinX | | OUT | 0x20B | GPU_RegionMinX | ||
+ | | IN | 0x20C | GPU_RegionMinY | ||
| OUT | 0x20C | GPU_RegionMinY | | OUT | 0x20C | GPU_RegionMinY | ||
+ | | IN | 0x20D | GPU_RegionMaxX | ||
| OUT | 0x20D | GPU_RegionMaxX | | OUT | 0x20D | GPU_RegionMaxX | ||
+ | | IN | 0x20E | GPU_RegionMaxY | ||
| OUT | 0x20E | GPU_RegionMaxY | | OUT | 0x20E | GPU_RegionMaxY | ||
+ | | IN | 0x20F | GPU_RegionHotspotX | ||
| OUT | 0x20F | GPU_RegionHotspotX | | OUT | 0x20F | GPU_RegionHotspotX | ||
+ | | IN | 0x210 | GPU_RegionHotspotY | ||
| OUT | 0x210 | GPU_RegionHotspotY | | OUT | 0x210 | GPU_RegionHotspotY | ||
| | ||
Line 761: | Line 775: | ||
===Description=== | ===Description=== | ||
- | OR performs a **Bitwise | + | OR performs a **Bitwise |
====XOR==== | ====XOR==== | ||
Line 776: | Line 790: | ||
===Structure and variants=== | ===Structure and variants=== | ||
^ Variant | ^ Variant | ||
- | | 1 |<nowiki>XOR DSTREG, ImmediateValue</ | + | | 1 |<code asm>XOR DSTREG, ImmediateValue</ |
- | | 2 |<nowiki>XOR DSTREG, SRCREG</nowiki> |<nowiki>DSTREG = DSTREG ^ SRCREG;</ | + | | 2 |<code asm>XOR DSTREG, SRCREG</code> |<code c>DSTREG = DSTREG ^ SRCREG;</ |
===Description=== | ===Description=== | ||
Line 800: | Line 814: | ||
===Structure and variants=== | ===Structure and variants=== | ||
- | * < | + | ^ Variant |
- | * < | + | | 1 |< |
- | + | | 2 |< | |
- | ===Processing actions=== | + | |
- | * < | + | |
- | * < | + | |
===Description=== | ===Description=== | ||
SHL performs an bit shift to the left in the specified register. The second operand is | SHL performs an bit shift to the left in the specified register. The second operand is | ||
- | taken as an integer number of positions to shift. Shifting 0 positions has no effect, while | + | taken as an integer number of positions to shift. |
- | negative values result in shifting right. The shift type is logical: in shifts left, overflow is | + | |
- | discarded and zeroes are introduced as least significant bits. In shifts right, underflow is | + | Shifting 0 positions has no effect, while negative values result in shifting right. |
- | discarded and zeroes are introduced as most significant bits. | + | |
+ | The shift type is logical: in shifts left, overflow is discarded and zeroes are introduced as least significant bits. | ||
+ | |||
+ | In shifts right, underflow is discarded and zeroes are introduced as most significant bits. | ||