{"blog_url":"https://memo88.hatenablog.com/","categories":["vm2gol-v2"],"image_url":null,"height":"190","type":"rich","author_url":"https://blog.hatena.ne.jp/sonota88/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo88.hatenablog.com%2Fentry%2F2019%2F05%2F04%2F235252\" title=\"vm2gol v2 \u88fd\u4f5c\u30e1\u30e2\uff081\uff09 \u6700\u521d\u306eVM - memo486\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","width":"100%","author_name":"sonota88","provider_name":"Hatena Blog","published":"2019-05-04 23:52:52","version":"1.0","blog_title":"memo486","url":"https://memo88.hatenablog.com/entry/2019/05/04/235252","title":"vm2gol v2 \u88fd\u4f5c\u30e1\u30e2\uff081\uff09 \u6700\u521d\u306eVM","description":"\u76ee\u6b21\u30da\u30fc\u30b8\u306b\u623b\u308b / \u6b21 \u3068\u306b\u304b\u304f\u59cb\u3081\u308b \u3068\u306b\u304b\u304f\u3084\u308b\u306e\u3060\u3041 \uff08\u300e30\u65e5\u3067\u3067\u304d\u308b\uff01 OS\u81ea\u4f5c\u5165\u9580\u300f p14\uff09 \u3068\u308a\u3042\u3048\u305a\u30a2\u30ec\u3067\u3059\u3088\u306d\uff1f \u30ec\u30b8\u30b9\u30bf\u3068\u30e1\u30e2\u30ea\u304c\u3042\u308b\u3093\u3067\u3059\u3088\u306d\uff1f \u306a\u3069\u3068\u3044\u3063\u3066\u9069\u5f53\u306b\u66f8\u304d\u59cb\u3081\u307e\u3059\u3002 \u6163\u308c\u3066\u3044\u3066\u30b5\u30c3\u3068\u59cb\u3081\u3089\u308c\u308b\u306e\u3067 Ruby \u3067\u3059\u3002 \u30b5\u30c3\u3068\u59cb\u3081\u3089\u308c\u308b\u306e\u5927\u4e8b\u3067\u3059\u3002 # coding: utf-8 require \"pp\" class Vm def initialize # register @reg_a = 0 @reg_b = 0 @reg_c = 0 @mem = Array.new(8, 0) # \u30b5\u30a4\u30ba8\u30010\u3067\u521d\u671f\u5316 end def set_mem(addr, n)\u2026"}