fix cp paste
This commit is contained in:
parent
2c57ca773b
commit
2dffad61b8
@ -10,13 +10,10 @@ class TestExtern < MiniTest::Test
|
|||||||
|
|
||||||
def test_generate_small
|
def test_generate_small
|
||||||
@generator.instance_eval {
|
@generator.instance_eval {
|
||||||
mov r0, 5 #1
|
ldr r0, "hello world" #1
|
||||||
loop_start = label
|
bl :printf #2
|
||||||
loop_start.set!
|
mov r7, 1 #3
|
||||||
subs r0, r0, 1 #2
|
swi 0 #4 4 instruction x 4 == 16
|
||||||
bne loop_start #3
|
|
||||||
mov r7, 1 #4
|
|
||||||
swi 0 #5 5 instruction x 4 == 20
|
|
||||||
}
|
}
|
||||||
|
|
||||||
writer = Asm::ObjectWriter.new(Elf::Constants::TARGET_ARM)
|
writer = Asm::ObjectWriter.new(Elf::Constants::TARGET_ARM)
|
||||||
|
Loading…
Reference in New Issue
Block a user