2016-12-09 12:20:48 +01:00
|
|
|
class String
|
|
|
|
def camelize
|
|
|
|
self.split("_").collect( &:capitalize ).join
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2017-01-19 08:02:29 +01:00
|
|
|
require "risc/padding"
|
|
|
|
require "risc/positioned"
|
2015-10-22 17:16:29 +02:00
|
|
|
|
2017-01-18 19:09:43 +01:00
|
|
|
require "parfait"
|
2017-01-19 08:02:29 +01:00
|
|
|
require "risc/machine"
|
2018-03-11 12:32:42 +01:00
|
|
|
require "risc/method_compiler"
|
2015-10-22 17:16:29 +02:00
|
|
|
|
|
|
|
class Fixnum
|
|
|
|
def fits_u8?
|
|
|
|
self >= 0 and self <= 255
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-12-09 12:20:48 +01:00
|
|
|
|
2017-01-19 08:02:29 +01:00
|
|
|
require "risc/instruction"
|
|
|
|
require "risc/register_value"
|
|
|
|
require "risc/assembler"
|