spo600:6502_math_lab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
spo600:6502_math_lab [2025/01/24 01:41] – chris | spo600:6502_math_lab [2025/01/29 16:25] (current) – [In-Class Lab: Mob Programming] chris | ||
---|---|---|---|
Line 33: | Line 33: | ||
Follow these steps: | Follow these steps: | ||
- You will be assigned to a Zoom breakout group. Within the group, select someone to be the initial " | - You will be assigned to a Zoom breakout group. Within the group, select someone to be the initial " | ||
- | | + | - Decide on how you're going to share the final code between members of your group. This might be as simple as pasting it into the Zoom chat (Caution!), or you could use a [[https:// |
- | | + | |
- Have the Driver share their screen with the group. | - Have the Driver share their screen with the group. | ||
- Collaborate with the Driver using audio and/or video. In Pair or Mob Programming, | - Collaborate with the Driver using audio and/or video. In Pair or Mob Programming, | ||
Line 76: | Line 75: | ||
START: | START: | ||
- | ; Set up the data structure | + | ; Set up the width and height elements of the data structure |
LDA #$05 | LDA #$05 | ||
STA $12 ; IMAGE WIDTH | STA $12 ; IMAGE WIDTH | ||
Line 289: | Line 288: | ||
4. Select a starting location for the graphic where X and Y have different values. | 4. Select a starting location for the graphic where X and Y have different values. | ||
- | 5. Select an X increment that is -1 or +1, and a Y increment that is -1 or +1. | + | 5. Select an X increment that is -1 or +1, and a Y increment that is -1 or +1. You can choose to use either a signed byte or some other representation to hold these values. |
6. Successively move the graphic by adding the X and Y increments to the graphic' | 6. Successively move the graphic by adding the X and Y increments to the graphic' | ||
- | 7. Make the graphic bounce when it hits the edge of the bitmapped screen, both vertically (when it hits the top/bottom) and vertically | + | 7. Make the graphic bounce when it hits the edge of the bitmapped screen, both vertically (when it hits the top/bottom) and horizontally |
---- | ---- | ||
Line 303: | Line 302: | ||
==== Challenges (Optional, Recommended) | ==== Challenges (Optional, Recommended) | ||
- | Try these experiments: | + | Here are some challenges for further experimentation if you're interested: |
- | - Permit values other than -1 and +1 for the X and Y increments. | + | |
- | - Permit fractional values for the X and Y increments (e.g., +1.5 or -0.75) | + | |
- | - Change the graphic each time it bounces. | + | * Perturb (subtly disrupt or randomize) the ball's position or bounce so that it is not overly predictable. (Remember that there' |
+ | * Change the graphic | ||
==== Write-Up | ==== Write-Up |
spo600/6502_math_lab.1737682862.txt.gz · Last modified: 2025/01/24 01:41 by chris