mirror of https://github.com/aamine/cbc
* net/loveruby/cflat/ast/Function.java (address): should return $sym.
* net/loveruby/cflat/asm/Instruction.java: fix indent. git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4024 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
ac8256550c
commit
cb8b921931
|
@ -1,3 +1,10 @@
|
||||||
|
Tue Sep 16 00:59:55 2008 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* net/loveruby/cflat/ast/Function.java (address): should return
|
||||||
|
$sym.
|
||||||
|
|
||||||
|
* net/loveruby/cflat/asm/Instruction.java: fix indent.
|
||||||
|
|
||||||
Tue Sep 16 00:21:10 2008 Minero Aoki <aamine@loveruby.net>
|
Tue Sep 16 00:21:10 2008 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
* net/loveruby/cflat/asm/Assembler.java: objectify instructions,
|
* net/loveruby/cflat/asm/Assembler.java: objectify instructions,
|
||||||
|
|
|
@ -47,6 +47,7 @@ public class Instruction extends Assembly {
|
||||||
|
|
||||||
public String toSource() {
|
public String toSource() {
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
|
buf.append("\t");
|
||||||
buf.append(mnemonic + suffix);
|
buf.append(mnemonic + suffix);
|
||||||
String sep = "\t";
|
String sep = "\t";
|
||||||
for (int i = 0; i < operands.length; i++) {
|
for (int i = 0; i < operands.length; i++) {
|
||||||
|
|
|
@ -26,6 +26,6 @@ abstract public class Function extends Entity {
|
||||||
}
|
}
|
||||||
|
|
||||||
public AsmEntity address() {
|
public AsmEntity address() {
|
||||||
return new DirectAddress(new Label(name()));
|
return new ImmediateValue(new Label(name()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue