This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| pasue(){ | |
| echo $* | |
| read -s -n1 -p "press any key to continue.." | |
| echo | |
| } | |
| check(){ | |
| info=`./gold $1 ./gold.png $2 2>&1` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .ORIG X6000 | |
| .FILL AA | |
| .FILL xF | |
| .FILL x78 | |
| .FILL BB | |
| .FILL x1A | |
| .FILL x31 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .ORIG x5000 | |
| .STRINGZ "1111" | |
| .FILL x1B ; values | |
| .FILL 0 | |
| .STRINGZ "2222" | |
| .FILL xE ; values | |
| .FILL 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear | |
| for ff in *.asm | |
| do | |
| lc3as $ff > /dev/nul | |
| done | |
| for i in 1 2 3 4 5 | |
| do | |
| echo "-=================== TEST $i =====================-" | |
| lc3sim -s script$i > my$i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for ff in *.asm | |
| do | |
| lc3as $ff > /dev/nul | |
| done | |
| for i in 1 2 3 4 5 | |
| do | |
| echo "-=================== TEST $i =====================-" | |
| lc3sim -s script$i > my$i | |
| diff my$i out$i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| def dist(angle, m_prop): | |
| t = np.linspace(0, 10, 1001) | |
| vx = np.zeros([1001]) | |
| vy = np.zeros([1001]) | |
| x = np.zeros([1001]) | |
| y = np.zeros([1001]) |