Skip to content

Instantly share code, notes, and snippets.

@pluto0x0
pluto0x0 / 1.md
Created July 10, 2021 15:58
asdfsadf

asdasd

sadasd

@pluto0x0
pluto0x0 / 2.py
Created November 27, 2021 02:30
hw10
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])
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
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
.ORIG x5000
.STRINGZ "1111"
.FILL x1B ; values
.FILL 0
.STRINGZ "2222"
.FILL xE ; values
.FILL 1
.ORIG X6000
.FILL AA
.FILL xF
.FILL x78
.FILL BB
.FILL x1A
.FILL x31
@pluto0x0
pluto0x0 / test.sh
Created November 16, 2022 20:57
MP8 test
#!/bin/bash
pasue(){
echo $*
read -s -n1 -p "press any key to continue.."
echo
}
check(){
info=`./gold $1 ./gold.png $2 2>&1`