fix putstring and puts

using syscall regs
This commit is contained in:
2020-03-16 17:32:24 +02:00
parent 17a7f29b0c
commit 3ce6ed5263
6 changed files with 45 additions and 46 deletions

View File

@ -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

View File

@ -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)