 ###*
 @class
   Viewer for mrb binary
-@extends TextEditor
+@extends YamlEditor
 ###
-module.exports = class MrbViewer extends TextEditor
+module.exports = class MrbViewer extends YamlEditor
   TextEditor.register(this)
 
   #--------------------------------------------------------------------------------

    Sketch item
  ###
  constructor: ($, sketch, item) ->
    super($, sketch, item, "ace/mode/yaml")
    return

  ###*


  _decodeRiteInst: (code) ->
    op = (code) & 0x7f
    a = (code >>> 23) & 0x1ff
    b = (code >>> 14) & 0x1ff
    c = (code >>> 7) & 0x7f
    bx = (code >>> 7) & 0xffff
    sbx = bx - (0xffff >>> 1)
    ax = (code >>> 7) & 0x1ffffff
    switch (code & 0x7f)
      when 0x00
        return ["OP_NOP", "no operation"]
