dropped extern functionality for now
This commit is contained in:
parent
5237ff9e40
commit
7478b65fb0
@ -9,7 +9,7 @@ require "asm/data_object"
|
|||||||
class Asm::Arm::CodeGenerator
|
class Asm::Arm::CodeGenerator
|
||||||
def initialize
|
def initialize
|
||||||
@asm = Asm::Assembler.new
|
@asm = Asm::Assembler.new
|
||||||
@externs = []
|
# @externs = []
|
||||||
end
|
end
|
||||||
|
|
||||||
def data(str)
|
def data(str)
|
||||||
@ -79,6 +79,7 @@ class Asm::Arm::CodeGenerator
|
|||||||
lbl
|
lbl
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#externs dropped for now
|
||||||
def extern(sym)
|
def extern(sym)
|
||||||
if (lbl = @externs.find { |extern| extern.name == sym })
|
if (lbl = @externs.find { |extern| extern.name == sym })
|
||||||
lbl
|
lbl
|
||||||
|
@ -24,7 +24,8 @@ class TestSmallProg < MiniTest::Test
|
|||||||
write( 5 , "small" )
|
write( 5 , "small" )
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_extern
|
#test dropped along with functionality, didn't work and not needed (yet?) TODO
|
||||||
|
def no_test_extern
|
||||||
@generator.instance_eval {
|
@generator.instance_eval {
|
||||||
mov r0 , 50 #1
|
mov r0 , 50 #1
|
||||||
push lr #2
|
push lr #2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user