Skip to content
Snippets Groups Projects

Added compiled knit code

Merged Jennifer Mankoff requested to merge week7-edits into CSE590b-23WI
1 file
+ 29
0
Compare changes
  • Side-by-side
  • Inline
+ 29
0
@@ -689,7 +689,36 @@ with Carrier as c1:{
@@ -689,7 +689,36 @@ with Carrier as c1:{
knit_colored_stripe(c2); // will use c2
knit_colored_stripe(c2); // will use c2
knit_stripe(); // starts using c1 again
knit_stripe(); // starts using c1 again
}
}
 
```
```
 
 
---
 
# Compiled Code
 
 
```python
 
;!knitout-2
 
;;Machine: SWG091N2
 
;;Position: Center
 
inhook 1 ;Activating carrier 1
 
;KS: Cast on 20loops
 
tuck - f19 1 ; tuck loops: [0 on yarn C1.1]. # happens 9 more times on odd needles
 
[...]
 
tuck - f1 1 ; tuck loops: [9 on yarn C1.1].
 
releasehook 1 ;
 
tuck + f0 1 ; tuck loops: [10 on yarn C1.1]. # happens 9 more times on even needles
 
[...]
 
tuck + f18 1 ; tuck loops: [19 on yarn C1.1].
 
knit - f19 1 ;knit loops: [20 on yarn C1.1]. # knits 20 loops (all needles)
 
[...]
 
knit - f0 1 ;knit loops: [39 on yarn C1.1].
 
knit + f0 1 ;knit loops: [40 on yarn C1.1]. # knits 20 loops (all needles)
 
[...]
 
knit + f19 1 ;knit loops: [59 on yarn C1.1]. # continues to do more rows
 
[...]
 
inhook 2 ;Activating carrier 2 # changes carrier (color)
 
[...]
 
```
 
---
---
# Knitting a stripe
# Knitting a stripe
Loading