fix putstring and puts
using syscall regs
This commit is contained in:
@ -203,10 +203,6 @@ module Risc
|
||||
end
|
||||
end
|
||||
|
||||
# The register we use to store the current message object is :r0
|
||||
def self.message_reg
|
||||
RegisterValue.new :r0 , :Message
|
||||
end
|
||||
# a named version of the message register, called :message
|
||||
def self.message_named_reg
|
||||
RegisterValue.new :message , :Message
|
||||
|
@ -39,7 +39,7 @@ module Risc
|
||||
# and then translating all methods
|
||||
def translate( platform_sym )
|
||||
platform_sym = platform_sym.to_s.capitalize
|
||||
platform = Risc::Platform.for(platform_sym)
|
||||
platform = Platform.for(platform_sym)
|
||||
assemblers = []
|
||||
@method_compilers.each_compiler do |compiler|
|
||||
compiler.translate_method( platform.translator , assemblers)
|
||||
|
Reference in New Issue
Block a user