LoginSignup
0
0

More than 1 year has passed since last update.

vistaでquartus その27

Last updated at Posted at 2020-08-18

概要

vistaでquartusやってみた。
cpu作ってみた。
aからzを表示する。

アセンブラ

  push  0
  set  i
loop:
  get  i
  push  25
  >
pass:
  jz  pass 
  get  i
  push  97
  +
  out
  get  i
  push  1
  +
  set  i
  jmp loop

ハンドアセンブル

        mem[0]  = 16'h1000;//push 0
        mem[1]  = 16'h300f;//set i
        mem[2]  = 16'h200f;//get i
        mem[3]  = 16'h101a;//push 26
        mem[4]  = 16'hf002;//>
        mem[5]  = 16'h5005;//jz 5
        mem[6]  = 16'h200f;//get i
        mem[7]  = 16'h1061;//push 97
        mem[8]  = 16'hf000;//+
        mem[9]  = 16'he000;//out
        mem[10] = 16'h200f;//get i
        mem[11] = 16'h1001;//push 1
        mem[12] = 16'hf000;//+
        mem[13] = 16'h300f;//set i
        mem[14] = 16'h4002;//jp  2
        mem[15] = 16'h0000;//i

実行結果

無題.jpg

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0