still +1 errors
also bigger risc view
This commit is contained in:
parent
89e221c748
commit
9832c8730b
@ -18,15 +18,15 @@ body
|
|||||||
margin-left: 1%
|
margin-left: 1%
|
||||||
|
|
||||||
.vool_view
|
.vool_view
|
||||||
width: 14%
|
width: 12%
|
||||||
margin-left: 1%
|
margin-left: 1%
|
||||||
|
|
||||||
.mom_view
|
.mom_view
|
||||||
width: 24%
|
width: 16%
|
||||||
margin-left: 1%
|
margin-left: 1%
|
||||||
|
|
||||||
.risc_view
|
.risc_view
|
||||||
width: 24%
|
width: 34%
|
||||||
margin-left: 1%
|
margin-left: 1%
|
||||||
|
|
||||||
.status_view
|
.status_view
|
||||||
@ -82,7 +82,6 @@ body
|
|||||||
|
|
||||||
.risc_bright , .mom_bright
|
.risc_bright , .mom_bright
|
||||||
background-color: black
|
background-color: black
|
||||||
font-size: 1.2rem
|
|
||||||
color: #53a5ff
|
color: #53a5ff
|
||||||
border-radius: 7px
|
border-radius: 7px
|
||||||
|
|
||||||
|
@ -72,6 +72,7 @@ class SelectView < ElementView
|
|||||||
{ while_with_calls: 'a = 0; while( 0 > a); a = 1 + a;end;return a',
|
{ while_with_calls: 'a = 0; while( 0 > a); a = 1 + a;end;return a',
|
||||||
set_internal_byte: "return 'Hello'.set_internal_byte(1,75)" ,
|
set_internal_byte: "return 'Hello'.set_internal_byte(1,75)" ,
|
||||||
called_if: 'if( 10 ); return "then";else;return "else";end' ,
|
called_if: 'if( 10 ); return "then";else;return "else";end' ,
|
||||||
|
plus: 'return 5 + 7' ,
|
||||||
hello_world: "h = 'Hello World'.putstring;return h",
|
hello_world: "h = 'Hello World'.putstring;return h",
|
||||||
dynamic_call: "a = 150 ; return a.div10",
|
dynamic_call: "a = 150 ; return a.div10",
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,8 @@ class ObjectView < ListView
|
|||||||
end
|
end
|
||||||
#puts "got var name #{variable}#{variable.class} for #{at}, #{f}"
|
#puts "got var name #{variable}#{variable.class} for #{at}, #{f}"
|
||||||
view = RefView.new( variable , f , @z )
|
view = RefView.new( variable , f , @z )
|
||||||
if( @children[at] )
|
if( @children[at + 1] )
|
||||||
replace_at(at , view)
|
replace_at(at + 1, view)
|
||||||
else
|
else
|
||||||
append_view(view)
|
append_view(view)
|
||||||
end
|
end
|
||||||
@ -53,7 +53,7 @@ class ObjectView < ListView
|
|||||||
fields << RefView.new( variable , f , @z )
|
fields << RefView.new( variable , f , @z )
|
||||||
end
|
end
|
||||||
if( object.is_a?(Parfait::List) )
|
if( object.is_a?(Parfait::List) )
|
||||||
index = 1
|
index = 0
|
||||||
object.each do | o|
|
object.each do | o|
|
||||||
fields << RefView.new( index.to_s , o , @z )
|
fields << RefView.new( index.to_s , o , @z )
|
||||||
index += 1
|
index += 1
|
||||||
|
@ -36,8 +36,7 @@ class RiscView < ListView
|
|||||||
|
|
||||||
def instruction_text
|
def instruction_text
|
||||||
return "" unless @interpreter.instruction
|
return "" unless @interpreter.instruction
|
||||||
text = @interpreter.instruction.to_s
|
@interpreter.instruction.to_s.split("(").first
|
||||||
text.split("(").first
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user