Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- when "00000" => oQ <= "000110010010000"; --inc r2
- when "00001" => oQ <= "000110010010000"; --inc r2
- when "00010" => oQ <= "000110010010000"; --inc r2
- when "00011" => oQ <= "001000010010000"; --shl r2
- when "00100" => oQ <= "100000000101101"; --pocetak: ld r0, r5
- when "00101" => oQ <= "000000011000000"; --mov r3,r0
- when "00110" => oQ <= "000110101101000"; --inc r5
- when "00111" => oQ <= "100000000000101"; --ld r0,r5
- when "01000" => oQ <= "000001011011000"; --add r3,r0
- when "01001" => oQ <= "001010011011000"; --ashl r3
- when "01010" => oQ <= "001010011011000"; --ashl r3
- when "01011" => oQ <= "000110101101000"; --inc r5
- when "01100" => oQ <= "100000000101101"; --ld r0,r5
- when "01101" => oQ <= "000000100000000"; --mov r4,r0
- when "01110" => oQ <= "001011100100000"; --ashl r4
- when "01111" => oQ <= "001011100100000"; --ashl r4
- when "10000" => oQ <= "001011100100000"; --ashl r4
- when "10001" => oQ <= "000001100011100"; --add r4,r3
- when "10010" => oQ <= "000110101101000"; --inc r5
- when "10011" => oQ <= "110000000100101"; --st r4,r5
- when "10100" => oQ <= "000010101101010"; --sub r2,r5
- when "10101" => oQ <= "010001000011010"; --jz kraj
- when "10110" => oQ <= "000001101010101"; --add r2,r5
- when "10111" => oQ <= "000111101101000"; --dec r5
- when "11000" => oQ <= "000111101101000"; --dec r5
- when "11001" => oQ <= "010000000000100"; --jmp pocetak
- when "11010" => oQ <= "100000100101010"; --kraj: jmp kraj
- -- when "11010" => oQ <= "110000000101111"; --store r2,r7(0);
- -- when "11011" => oQ <= "010000000000100"; --jmp pocetak
- when "11100" => oQ <= "000111010010000";
- when "11101" => oQ <= "010000000011010"; --pomeriti tamo na kraj, samo sam proveravao sta je upisano u memoriju
- when "11110" => oQ <= "000000000000000";
- when "11111" => oQ <= "000000000000000";
- when others => oQ <= "000000000000000";
Add Comment
Please, Sign In to add comment