rubyx/lib/risc.rb

26 lines
465 B
Ruby
Raw Normal View History

2016-12-09 13:20:48 +02:00
class String
def camelize
self.split("_").collect( &:capitalize ).join
end
end
2018-03-13 16:57:24 +05:30
require_relative "risc/padding"
require_relative "risc/positioned"
2015-10-22 18:16:29 +03:00
require "parfait"
2018-03-13 16:57:24 +05:30
require_relative "risc/machine"
require_relative "risc/method_compiler"
2015-10-22 18:16:29 +03:00
class Fixnum
def fits_u8?
self >= 0 and self <= 255
end
end
2016-12-09 13:20:48 +02:00
2018-03-13 16:57:24 +05:30
require_relative "risc/instruction"
require_relative "risc/register_value"
require_relative "risc/assembler"
require_relative "risc/builtin/space"